Skip to content

Commit

Permalink
Deprecate Library Export Default Webpack Plugin for webpack 5
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Aug 3, 2021
1 parent 20d56ba commit abbc15f
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 308 deletions.
52 changes: 2 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/custom-templated-path-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"escape-string-regexp": "^1.0.5"
},
"peerDependencies": {
"webpack": "^4.0.0 || ^5.0.0"
"webpack": "^4.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/dependency-extraction-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "lib/types.d.ts",
"dependencies": {
"json2php": "^0.0.4",
"webpack-sources": "^2.2.0"
"webpack-sources": "^3.2.0"
},
"peerDependencies": {
"webpack": "^4.8.3 || ^5.0.0"
Expand Down
4 changes: 4 additions & 0 deletions packages/library-export-default-webpack-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Deprecations

- 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)).

## 2.0.0 (2021-01-21)

### Breaking Changes
Expand Down
4 changes: 3 additions & 1 deletion packages/library-export-default-webpack-plugin/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Library Export Default Webpack Plugin

> **DEPRECATED for webpack v5**: please use [`output.library.export`](https://webpack.js.org/configuration/output/#outputlibraryexport) instead.
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.

## Installation
Expand All @@ -10,7 +12,7 @@ Install the module
npm install @wordpress/library-export-default-webpack-plugin --save
```

**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.
**Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions. It works only with webpack v4.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions packages/library-export-default-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"main": "index.js",
"dependencies": {
"lodash": "^4.17.21",
"webpack-sources": "^2.2.0"
"webpack-sources": "^3.2.0"
},
"peerDependencies": {
"webpack": "^4.0.0 || ^5.0.0"
"webpack": "^4.0.0"
},
"publishConfig": {
"access": "public"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions packages/library-export-default-webpack-plugin/test/index.js

This file was deleted.

Loading

0 comments on commit abbc15f

Please sign in to comment.