-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
no-duplicates rule with query-string params #1107
Comments
Note that it looks a bit like #682, but there it was using different loaders: here we're using the same loader but with different options. |
These are indeed two different URLs/modules in browsers, but in node, that’s still undetermined. Seems like perhaps an option would be good, and we can decide what to do with it later once node ships ESM. |
…en using some webpack loaders. Fixes import-js#1107.
…en using some webpack loaders. Fixes import-js#1107.
@ljharb I've sent a PR with an option. I'm not proud of the name though, so feel free to suggest better names. |
…en using some webpack loaders. Fixes import-js#1107.
…ives when using some webpack loaders. Fixes import-js#1107.
…ives when using some webpack loaders. Fixes import-js#1107.
…ives when using some webpack loaders. Fixes import-js#1107.
…se positives when using some webpack loaders. Fixes import-js#1107.
I'm using the svg-transform-loader which transforms SVG files on the fly but then I end up importing a file several times but with different options a query string parameter:
eslint is not happy with that and raises a
import/no-duplicates
error.Any idea how I should setup my config so that this plugin actually understands that even if they are based on the same file, it's a valid different import?
The text was updated successfully, but these errors were encountered: