Skip to content

make render manifest extensible#6374

Merged
sokra merged 1 commit intonextfrom
refactor/render-manifest
Jan 24, 2018
Merged

make render manifest extensible#6374
sokra merged 1 commit intonextfrom
refactor/render-manifest

Conversation

@sokra
Copy link
Copy Markdown
Member

@sokra sokra commented Jan 24, 2018

What kind of change does this PR introduce?
refactor

Did you add tests for your changes?
existing tests

If relevant, link to documentation update:
N/A

Summary
make render manifest extensible
move JS and WASM specific template stuff into plugins

Does this PR introduce a breaking change?
no

Other information
This will be useful for adding custom module types or the extract-text-webpack-plugin
cc @michael-ciniawsky

move JS and WASM specific template stuff into plugins
const dependencyTemplates = options.dependencyTemplates;

for(const module of chunk.modulesIterable) {
if(module.type && module.type.startsWith("webassembly")) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I always thought module.type couldn't be unset.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

hmm.. yes, I only moved the code. When this code was written I considered unset module.type for backward-compatibility.

@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 02f8c96 into next Jan 24, 2018
@sokra sokra deleted the refactor/render-manifest branch January 24, 2018 10:23
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.

3 participants