Skip to content

Commit abbc15f

Browse files
committed
Deprecate Library Export Default Webpack Plugin for webpack 5
1 parent 20d56ba commit abbc15f

File tree

12 files changed

+23
-308
lines changed

12 files changed

+23
-308
lines changed

package-lock.json

+2-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/custom-templated-path-webpack-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"escape-string-regexp": "^1.0.5"
3232
},
3333
"peerDependencies": {
34-
"webpack": "^4.0.0 || ^5.0.0"
34+
"webpack": "^4.0.0"
3535
},
3636
"publishConfig": {
3737
"access": "public"

packages/dependency-extraction-webpack-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"types": "lib/types.d.ts",
3131
"dependencies": {
3232
"json2php": "^0.0.4",
33-
"webpack-sources": "^2.2.0"
33+
"webpack-sources": "^3.2.0"
3434
},
3535
"peerDependencies": {
3636
"webpack": "^4.8.3 || ^5.0.0"

packages/library-export-default-webpack-plugin/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Deprecations
6+
7+
- This plugin is deprecated for webpack 5. Please use [`output.library.export`](https://webpack.js.org/configuration/output/#outputlibraryexport) instead ([#33818](ttps://github.com/WordPress/gutenberg/pull/33818)).
8+
59
## 2.0.0 (2021-01-21)
610

711
### Breaking Changes

packages/library-export-default-webpack-plugin/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Library Export Default Webpack Plugin
22

3+
> **DEPRECATED for webpack v5**: please use [`output.library.export`](https://webpack.js.org/configuration/output/#outputlibraryexport) instead.
4+
35
Webpack plugin for exporting `default` property for selected libraries which use ES6 Modules. Implementation is based on the Webpack's core plugin [ExportPropertyMainTemplatePlugin](https://github.com/webpack/webpack/blob/51b0df77e4f366163730ee465f01458bfad81f34/lib/ExportPropertyMainTemplatePlugin.js). The only difference is that this plugin allows to include all entry point names where the default export of your entry point will be assigned to the library target.
46

57
## Installation
@@ -10,7 +12,7 @@ Install the module
1012
npm install @wordpress/library-export-default-webpack-plugin --save
1113
```
1214

13-
**Note**: This package requires Node.js 12.0.0 or later. It also requires webpack 4.0 and newer. It is not compatible with older versions.
15+
**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions. It works only with webpack v4.
1416

1517
## Usage
1618

packages/library-export-default-webpack-plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"main": "index.js",
3131
"dependencies": {
3232
"lodash": "^4.17.21",
33-
"webpack-sources": "^2.2.0"
33+
"webpack-sources": "^3.2.0"
3434
},
3535
"peerDependencies": {
36-
"webpack": "^4.0.0 || ^5.0.0"
36+
"webpack": "^4.0.0"
3737
},
3838
"publishConfig": {
3939
"access": "public"

packages/library-export-default-webpack-plugin/test/fixtures/boo/index.js

-3
This file was deleted.

packages/library-export-default-webpack-plugin/test/fixtures/foo/index.js

-3
This file was deleted.

packages/library-export-default-webpack-plugin/test/fixtures/webpack.config.js

-20
This file was deleted.

packages/library-export-default-webpack-plugin/test/index.js

-33
This file was deleted.

0 commit comments

Comments
 (0)