Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Migrate from Plugin to Loader #3

Closed
kitsonk opened this issue Sep 29, 2017 · 1 comment
Closed

Migrate from Plugin to Loader #3

kitsonk opened this issue Sep 29, 2017 · 1 comment

Comments

@kitsonk
Copy link
Member

kitsonk commented Sep 29, 2017

Enhancement

The architecture of static-optimize-plugin is limited in being a plugin. In particular webpack does not provide easy ways for plugins to elide dependencies and update a dependency graph. The only effective way to remove dependencies is remove them from the source as webpack loads the module. This means that the features really should be a loader instead of a plugin.

@matt-gadd's umd-compat-loader provides an example of loading a module, doing an AST transform on the module which also updates the source map, as a webpack loader. We should follow a similar architecture for the features in this package.

@kitsonk
Copy link
Member Author

kitsonk commented Oct 16, 2017

Issue moved to dojo/webpack-contrib #2 via ZenHub

@kitsonk kitsonk closed this as completed Oct 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants