-
-
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
named/default can't resolve local package.json #387
Comments
Strange. As outlined, that should work. What resolver are you using (if any)? |
Sorry, I forgot to explain the context: I know that the plugin won't be able to verify the import from |
Could you use jsnext:main and point it to the original ES6 source? https://github.com/rollup/rollup/wiki/jsnext:main |
That works if the source is ES6, but not if it's ES2016+ (since other tools that follow jsnext:main may break with ES2016+ syntax), and I don't think it's worth creating an intermediate ES2016+ > ES6 build that jsnext:main can point to just to get this working. As a workaround, adding Thanks for spending time discussing this, by the way! |
In any case, I'm happy to look into this and submit a PR if you agree with the change! |
Ah, I see what you're saying. I do have an outstanding item to auto-ignore CJS modules, which I think would have the effect you're looking for? |
Just taking a second to think this through. I think we shouldn't ignore ES6 modules will land in Node soon, and folks will have packages published to npm mere moments later. 😄 I think #270 should solve this (just redefined it). If the resolved module is without imports/exports, it will be ignored. So you won't get linting for real errors, but you won't get spurious errors, either. |
Closing as #270 is fixed in |
#270 looks like a great solution to me. Thanks a lot! |
This throws
foo not found in '..'
even though node is correctly able to resolve the path. I don't see a clear way to add animport/ignore
exception here -- is this possible?The text was updated successfully, but these errors were encountered: