Skip to content

fix package "imports"#12929

Merged
sokra merged 4 commits intowebpack:masterfrom
guybedford:imports-test
Mar 19, 2021
Merged

fix package "imports"#12929
sokra merged 4 commits intowebpack:masterfrom
guybedford:imports-test

Conversation

@guybedford
Copy link
Copy Markdown
Contributor

@guybedford guybedford commented Mar 18, 2021

What kind of change does this PR introduce?

bugfix, fixes #12928

Did you add tests for your changes?

This is a failing test for usage of the "imports" field per #12928.
It extends the exports tests.

Does this PR introduce a breaking change?

No

@webpack-bot
Copy link
Copy Markdown
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@@ -0,0 +1,6 @@
import d1 from "pck";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot find module 'pck'

The #internal seem to work

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've simplified the test case, the error does persist.

@sokra sokra changed the title Package "imports" test with failure fix package "imports" Mar 19, 2021
@webpack-bot
Copy link
Copy Markdown
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@sokra sokra merged commit f4ae05e into webpack:master Mar 19, 2021
@sokra
Copy link
Copy Markdown
Member

sokra commented Mar 19, 2021

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"imports" field support

3 participants