You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: