canopy-webpack-config 4.4.3 → 4.4.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canopy-webpack-config",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "Some defaults for webpack configs at canopy",
5
5
  "main": "src/canopy-webpack-config.js",
6
6
  "exports": {
@@ -34,6 +34,11 @@ const externalPatterns = [
34
34
  /^react\/lib.*/,
35
35
  /^react$/,
36
36
  /^rxjs\/?.*$/,
37
+ // Built out of the common-dependencies repo rather than npm. They keep their bare
38
+ // specifiers under ESM, same as under SystemJS, so consuming source needs no edit —
39
+ // online-listener in particular owns a singleton observable that must not be duplicated.
40
+ /^online-listener$/,
41
+ /^cp-analytics$/,
37
42
  /^single-spa-canopy$/,
38
43
  /^single-spa$/,
39
44
  /^@canopytax\//,
@@ -98,7 +103,6 @@ export default function (name, overridesConfig = {}, options = {}) {
98
103
  optimization: {
99
104
  runtimeChunk: false,
100
105
  splitChunks: { chunks: "async" },
101
- minimize: false,
102
106
  },
103
107
 
104
108
  externalsType: "module",
@@ -123,20 +127,7 @@ export default function (name, overridesConfig = {}, options = {}) {
123
127
  {
124
128
  test: /\.(js|jsx|ts|tsx)$/,
125
129
  exclude: /node_modules/,
126
- use: {
127
- loader: "babel-loader",
128
- options: {
129
- presets: [
130
- [
131
- "@babel/preset-env",
132
- { targets: "defaults", modules: false },
133
- ],
134
- ["@babel/preset-react", { runtime: "automatic" }],
135
- "@babel/preset-typescript",
136
- ],
137
- plugins: ["@babel/plugin-transform-runtime"],
138
- },
139
- },
130
+ use: "babel-loader",
140
131
  },
141
132
  ],
142
133
  },