-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Add webpack5 support (part 1) (#155)
- Update fixtures to support webpack5 and use dummy webpack/webpack-cli root packages approach from `webpack-stats-plugin` - Note: Does not actually enable webpack5 in tests for #140 as there's a lot more work to do there, so we're capturing the intermediate work here.
- Loading branch information
1 parent
9554254
commit 4b8809a
Showing
9 changed files
with
623 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "webpack-cli", | ||
"version": "0.0.0", | ||
"description": "Empty package to prevent flattening of real package", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "webpack", | ||
"version": "0.0.0", | ||
"description": "Empty package to prevent flattening of real package", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
|
||
if (process.env.DEBUG) { | ||
// eslint-disable-next-line no-console | ||
console.log(`webpack version: ${require("webpack/package.json").version}`); | ||
} | ||
|
||
// Note: Different than previous versions of webpack-cli. | ||
// eslint-disable-next-line import/no-unresolved | ||
module.exports = require("webpack-cli/bin/cli.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (process.env.DEBUG) { | ||
// eslint-disable-next-line no-console | ||
console.log(`webpack version: ${require("webpack/package.json").version}`); | ||
} | ||
|
||
// eslint-disable-next-line import/no-unresolved | ||
module.exports = require("webpack"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "webpack4", | ||
"version": "0.0.1", | ||
"description": "Webpack5 installs", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"webpack": "^5.1.0", | ||
"webpack-cli": "^4.0.0" | ||
} | ||
} |
Oops, something went wrong.