Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack-core is obsolete for webpack 2; use webpack-sources to get RawSource #31

Open
sompylasar opened this issue Apr 8, 2017 · 0 comments

Comments

@sompylasar
Copy link

The latest version of this package as of now is declared compatible with webpack 2 only.

To reuse the webpack's RawSource class, ChunkManifestPlugin depends on a webpack-core package which is generally missing from a webpack 2 setup (this is easily seen in an npm-shrinkwrap.json diff after chunk-manifest-webpack-plugin is installed).

webpack-core was marked as obsolete for webpack 2, and instead webpack-sources should be used to reuse the various *Source from webpack.

screen shot 2017-04-07 at 7 56 13 pm

This is how webpack 2 itself uses it:
https://github.com/webpack/webpack/blob/028c51301733836abbedc88be7483af2623f5943/lib/RawModule.js#L9

const RawSource = require("webpack-sources").RawSource;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant