@plaudit/webpack-extensions 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,7 +126,7 @@ function default_1(config, webpackConfig = require("@wordpress/scripts/config/we
126
126
  return sources.map(([srcDir, dest]) => {
127
127
  const srcRoot = node_path_1.default.join(process.cwd(), srcDir);
128
128
  const copyFiles = srcDir !== dest;
129
- const plugins = webpackConfig.plugins ?? [];
129
+ const plugins = webpackConfig.plugins ? [...webpackConfig.plugins] : [];
130
130
  plugins.push(new fork_ts_checker_webpack_plugin_1.default({
131
131
  typescript: {
132
132
  diagnosticOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",