Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support webpack 5#101

Open
kpdecker wants to merge 3 commits intodevelopit:main from
kpdecker:strip-parser
Open

Support webpack 5 #101
kpdecker wants to merge 3 commits intodevelopit:main from
kpdecker:strip-parser

Conversation

@kpdecker
Copy link

@kpdecker kpdecker commented Jun 21, 2020

Expands on/supersedes #100. Removing the parser logic simplifies the webpack API integration and number of points that break as a result of webpack 5 changes.

Note that karma-webpack would not play nicely when I installed webpack 5, so while this appears to compile correctly, it has not been tested at runtime with Webpack 5.

Possible fix for #77

Deevian, YoonjiJang, and paulo-goncalves reacted with thumbs up emoji
kpdecker added 3 commits June 20, 2020 22:45
Adds support for
```
export * from 'module';
export { function } from 'module'
```
providedExports field appears to be around for all of Webpack 4. If prior webpacks are supported still, then will need a simple adapter layer.
Copy link

Deevian commented Oct 14, 2020

Any possibility of moving this forward?

throw new Error('Attempted to load a worker implemented in CommonJS');
}

let exports = entries[0].entryModule.buildMeta.providedExports;
Copy link
Contributor

@kenrick95 kenrick95 Dec 8, 2020

Choose a reason for hiding this comment

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

Note that as per webpack/webpack#8576 (landed on Webpack 5.0), buildMeta.providedExports is no longer there

To retrieve the provided exports like in webpack 4, we would need to call compilation.moduleGraph.getProvidedExports, i.e. let providedExports = compilation.moduleGraph.getProvidedExports(entries[0].entryModule);

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

Reviewers

1 more reviewer

@kenrick95 kenrick95 kenrick95 left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /