Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES5 Bundle #208

Closed
lcharbon opened this issue Sep 6, 2019 · 3 comments
Closed

ES5 Bundle #208

lcharbon opened this issue Sep 6, 2019 · 3 comments

Comments

@lcharbon
Copy link

lcharbon commented Sep 6, 2019

When building with Webpack this package is not down compiled and does not work on internet explorer without a good deal of configuration. qs.js has a dist file that holds a down compiled build. Can this be added to query-string?

@sindresorhus
Copy link
Owner

Duplicate of #135

@sindresorhus sindresorhus marked this as a duplicate of #135 Sep 6, 2019
@sindresorhus
Copy link
Owner

Check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

If you use Create React App, upgrade to Create React App v2. It supports automatic transpilation of dependencies, which will make this package just work.

@peteruithoven
Copy link

For people using Vue and the Vue cli you can use the transpileDependencies option in vue.config.js:
https://cli.vuejs.org/config/#transpiledependencies
To get query-string working in IE 11 I also needed to add strict-uri-encode and split-on-first:

// vue.config.js
module.exports = {
  transpileDependencies: [
    "query-string",
    "strict-uri-encode",
    "split-on-first"
  ]
}

The alternative, like mentioned in the readme, is using version 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants