utm-params
utm-params copied to clipboard
Component-querystring integration breaks on node.js/server-side usage
https://github.com/component/querystring/issues/15
The component-querystring package has a quirk that breaks the utm-params package in node.js due to how they use the browser param in package.json. Is it possible to remove this dependency in favor of Node.js built-in querystring parser?
My fix for this is to add this to package.json for whatever project is using utm-params:
"postinstall": "sed -i '' '7s/.*/var type = require(\"component-type\");/' node_modules/component-querystring/index.js"