Skip to content

Conversation

@developit
Copy link
Member

This should fix #467.

stats.modules.forEach(stripLoaderFromModuleNames);
stats.chunks.forEach(c => {
(c.mapModules!=null ? c.mapModules(Object) : c.getModules()).forEach(stripLoaderFromModuleNames);
(c.modules || (c.mapModules!=null ? c.mapModules(Object) : c.getModules())).forEach(stripLoaderFromModuleNames);
Copy link
Member

Choose a reason for hiding this comment

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

getModules() is deprecated right?

That's reason why we see that weird message when we run preact build

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

preact build --json fails with TypeError: c.getModules is not a function

3 participants