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
Can't resolve imports field #265
Comments
Try to do it without webpack |
This is the result of running without a bundler such as webpack or rollup. |
/cc @vankop |
Ran into this as well, seems like subpath imports are not resolved when |
@sokra could you take a look on initial problem? should this work? |
Can't resolve imports field.
The file structure of project:
The content of the ./package.json file:
The content of the ./dist/a.mjs file:
The content of the ./dist/b.mjs file:
The content of the ./dist/c.mjs file:
The content of the ./dist/d.mjs file:
./dist/a.mjs will fail and./dist/a.mjs will succeed.
According to the imports field specification,./dist/a.mjs will succeed and./dist/b.mjs will fail.
The relative path condition may be wrong.
enhanced-resolve/lib/ImportsFieldPlugin.js
The text was updated successfully, but these errors were encountered: