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 4.0.0-alpha.1 feedback #6132
Comments
Hi, awesome work 👍. When upgrading to module.js:529
throw err;
^
Error: Cannot find module 'webpack/bin/convert-argv'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/yamafaktory/dev/rust-wasm-webpack/node_modules/webpack-dev-server/cli.js:8:21)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3) Edit: changing this file https://github.com/webpack/webpack-dev-server/blob/next/cli.js#L8 to const convertArgv = require('webpack-cli/bin/convert-argv'); Fixes it. Edit 2: There's already a PR for that issue https://github.com/webpack/webpack-dev-server/pull/1223/files |
Linking over #6135 |
Looks like the |
Thank you very much for the report @phyllisstein |
amireh/happypack#200 EDIT: Found something related that was briefly mentioned in 4.0.0-alpha.0 changelog:
but |
There is a kind of compat layer on |
Adding #6157 |
I've just created this issue within webpack-cli, seems like it might be related to the So because the cli is now the only way to use webpack, am I correct in thinking webpack is broken by default? var UglifyJsPlugin = require("webpack/lib/optimize/UglifyJsPlugin"); Please disregard this comment - have raised (which has already been closed 👍) an issue here #6162) |
An answer to @machineloop from the last alpha:
You can run
|
new version: #6179 |
Changelog diff from 4.0.0-alpha.0
Big features
optimization.minimize
has been added to switch minimizing on/offoptimization.minimizer
has been added to configurate minimizers and optionswebpack-cli
to use the CLI--progress
) now displays plugin namesFeatures
new Foo()
expressions**
,&
,|
,^
,>>>
,>>
,<<
and~
Rule.ident
is now allowed by schema__webpack_require__
and argument is omittedsideEffects
can be overriden via module.rulesBugfixes
Breaking changes for Plugin authors
Template
are now staticoutputOptions
andrequestShortener
has been moved to this classModule.meta
has been replaced withModule.buildMeta
Module.buildInfo
andModule.factoryMeta
have been addedModule
have been moved into the new objectsPlease comment if you find additional changes not in the changelog
The text was updated successfully, but these errors were encountered: