@elliemae/pui-cli 9.0.0-next.10 → 9.0.0-next.11

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.
@@ -287,6 +287,9 @@ const baseConfig = (options) => ({
287
287
  ...(options.resolve || {}).alias || {}
288
288
  }
289
289
  },
290
+ externalsPresets: {
291
+ web: true
292
+ },
290
293
  externals: {
291
294
  "@elliemae/pui-user-monitoring": "emuiUserMonitoring",
292
295
  "@elliemae/pui-app-loader": "emuiAppLoader",
@@ -111,7 +111,7 @@ const devConfig = {
111
111
  encwLoaderScriptPath,
112
112
  googleTagManager: (0, import_helpers.isGoogleTagManagerEnabled)()
113
113
  },
114
- scriptLoading: "module"
114
+ scriptLoading: "defer"
115
115
  }),
116
116
  new import_circular_dependency_plugin.default({
117
117
  exclude: /a\.(js|ts|jsx|tsx)|node_modules/,
@@ -89,16 +89,17 @@ const baseConfig = (options) => ({
89
89
  assetModuleFilename: "assets/[name].[hash][ext][query]",
90
90
  publicPath: "auto",
91
91
  library: {
92
- // name: getLibraryVariableName(),
93
- type: "module"
92
+ name: (0, import_helpers.getLibraryVariableName)(),
93
+ type: "var"
94
+ // type: 'module',
94
95
  },
95
- module: true,
96
+ // module: true,
96
97
  ...options.output
97
98
  },
98
99
  // Merge with env dependent settings
99
- experiments: {
100
- outputModule: true
101
- },
100
+ // experiments: {
101
+ // outputModule: true,
102
+ // },
102
103
  optimization: options.optimization,
103
104
  module: {
104
105
  rules: [
@@ -47,8 +47,8 @@ const getHtmlWebpackPlugins = () => {
47
47
  (htmlTemplateFile) => new import_html_webpack_plugin.default({
48
48
  template: htmlTemplateFile,
49
49
  filename: import_node_path.default.basename(htmlTemplateFile),
50
- inject: false,
51
- scriptLoading: "module"
50
+ inject: "head",
51
+ scriptLoading: "defer"
52
52
  })
53
53
  );
54
54
  };
@@ -46,8 +46,8 @@ const getHtmlWebpackPlugins = () => {
46
46
  (htmlTemplateFile) => new import_html_webpack_plugin.default({
47
47
  template: htmlTemplateFile,
48
48
  filename: import_node_path.default.basename(htmlTemplateFile),
49
- inject: false,
50
- scriptLoading: "module",
49
+ inject: "head",
50
+ scriptLoading: "defer",
51
51
  minify: {
52
52
  removeComments: true,
53
53
  collapseWhitespace: true,
@@ -135,7 +135,7 @@ const htmlWebpackPlugin = new import_html_webpack_plugin.default({
135
135
  encwLoaderScriptPath,
136
136
  googleTagManager: (0, import_helpers.isGoogleTagManagerEnabled)()
137
137
  },
138
- scriptLoading: "module"
138
+ scriptLoading: "defer"
139
139
  });
140
140
  const config = (0, import_webpack_base_babel.baseConfig)(getProdConfig());
141
141
  if (config.plugins)
@@ -260,6 +260,9 @@ const baseConfig = (options) => ({
260
260
  ...(options.resolve || {}).alias || {}
261
261
  }
262
262
  },
263
+ externalsPresets: {
264
+ web: true
265
+ },
263
266
  externals: {
264
267
  "@elliemae/pui-user-monitoring": "emuiUserMonitoring",
265
268
  "@elliemae/pui-app-loader": "emuiAppLoader",
@@ -81,7 +81,7 @@ const devConfig = {
81
81
  encwLoaderScriptPath,
82
82
  googleTagManager: isGoogleTagManagerEnabled()
83
83
  },
84
- scriptLoading: "module"
84
+ scriptLoading: "defer"
85
85
  }),
86
86
  new CircularDependencyPlugin({
87
87
  exclude: /a\.(js|ts|jsx|tsx)|node_modules/,
@@ -9,6 +9,7 @@ import ResolveTypeScriptPlugin from "resolve-typescript-plugin";
9
9
  import browserslistToEsbuild from "browserslist-to-esbuild";
10
10
  import {
11
11
  excludeNodeModulesExcept,
12
+ getLibraryVariableName,
12
13
  modulesToTranspile,
13
14
  getAlias,
14
15
  filterByFilePresence
@@ -61,16 +62,17 @@ const baseConfig = (options) => ({
61
62
  assetModuleFilename: "assets/[name].[hash][ext][query]",
62
63
  publicPath: "auto",
63
64
  library: {
64
- // name: getLibraryVariableName(),
65
- type: "module"
65
+ name: getLibraryVariableName(),
66
+ type: "var"
67
+ // type: 'module',
66
68
  },
67
- module: true,
69
+ // module: true,
68
70
  ...options.output
69
71
  },
70
72
  // Merge with env dependent settings
71
- experiments: {
72
- outputModule: true
73
- },
73
+ // experiments: {
74
+ // outputModule: true,
75
+ // },
74
76
  optimization: options.optimization,
75
77
  module: {
76
78
  rules: [
@@ -14,8 +14,8 @@ const getHtmlWebpackPlugins = () => {
14
14
  (htmlTemplateFile) => new HtmlWebpackPlugin({
15
15
  template: htmlTemplateFile,
16
16
  filename: path.basename(htmlTemplateFile),
17
- inject: false,
18
- scriptLoading: "module"
17
+ inject: "head",
18
+ scriptLoading: "defer"
19
19
  })
20
20
  );
21
21
  };
@@ -13,8 +13,8 @@ const getHtmlWebpackPlugins = () => {
13
13
  (htmlTemplateFile) => new HtmlWebpackPlugin({
14
14
  template: htmlTemplateFile,
15
15
  filename: path.basename(htmlTemplateFile),
16
- inject: false,
17
- scriptLoading: "module",
16
+ inject: "head",
17
+ scriptLoading: "defer",
18
18
  minify: {
19
19
  removeComments: true,
20
20
  collapseWhitespace: true,
@@ -107,7 +107,7 @@ const htmlWebpackPlugin = new HtmlWebpackPlugin({
107
107
  encwLoaderScriptPath,
108
108
  googleTagManager: isGoogleTagManagerEnabled()
109
109
  },
110
- scriptLoading: "module"
110
+ scriptLoading: "defer"
111
111
  });
112
112
  const config = baseConfig(getProdConfig());
113
113
  if (config.plugins)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "9.0.0-next.10",
3
+ "version": "9.0.0-next.11",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -98,7 +98,7 @@
98
98
  "@commitlint/cli": "~17.6.3",
99
99
  "@commitlint/config-conventional": "~17.6.3",
100
100
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
101
- "@faker-js/faker": "8.0.0",
101
+ "@faker-js/faker": "8.0.1",
102
102
  "@nrwl/cli": "15.9.3",
103
103
  "@nrwl/tao": "16.1.4",
104
104
  "@nrwl/workspace": "16.1.4",
@@ -106,26 +106,26 @@
106
106
  "@semantic-release/changelog": "~6.0.3",
107
107
  "@semantic-release/exec": "~6.0.3",
108
108
  "@semantic-release/git": "~10.0.1",
109
- "@storybook/addon-a11y": "~7.0.11",
110
- "@storybook/addon-essentials": "~7.0.11",
109
+ "@storybook/addon-a11y": "~7.0.12",
110
+ "@storybook/addon-essentials": "~7.0.12",
111
111
  "@storybook/addon-events": "~6.2.9",
112
- "@storybook/addon-interactions": "~7.0.11",
113
- "@storybook/addon-links": "~7.0.11",
114
- "@storybook/addon-storysource": "~7.0.11",
115
- "@storybook/blocks": "~7.0.11",
116
- "@storybook/builder-vite": "~7.0.11",
117
- "@storybook/builder-webpack5": "~7.0.11",
112
+ "@storybook/addon-interactions": "~7.0.12",
113
+ "@storybook/addon-links": "~7.0.12",
114
+ "@storybook/addon-storysource": "~7.0.12",
115
+ "@storybook/blocks": "~7.0.12",
116
+ "@storybook/builder-vite": "~7.0.12",
117
+ "@storybook/builder-webpack5": "~7.0.12",
118
118
  "@storybook/jest": "~0.1.0",
119
119
  "@storybook/manager-webpack5": "~6.5.16",
120
- "@storybook/react": "~7.0.11",
121
- "@storybook/react-vite": "~7.0.11",
122
- "@storybook/react-webpack5": "~7.0.11",
120
+ "@storybook/react": "~7.0.12",
121
+ "@storybook/react-vite": "~7.0.12",
122
+ "@storybook/react-webpack5": "~7.0.12",
123
123
  "@storybook/testing-library": "~0.1.0",
124
- "@storybook/theming": "~7.0.11",
124
+ "@storybook/theming": "~7.0.12",
125
125
  "@stylelint/postcss-css-in-js": "~0.38.0",
126
126
  "@svgr/webpack": "~8.0.1",
127
127
  "@swc/cli": "~0.1.62",
128
- "@swc/core": "~1.3.57",
128
+ "@swc/core": "~1.3.58",
129
129
  "@swc/jest": "~0.2.26",
130
130
  "@testing-library/jest-dom": "~5.16.5",
131
131
  "@testing-library/react": "~14.0.0",
@@ -139,7 +139,7 @@
139
139
  "@types/jest": "~29.5.1",
140
140
  "@types/jest-axe": "~3.5.5",
141
141
  "@types/moment-locales-webpack-plugin": "~1.2.3",
142
- "@types/node": "~20.1.3",
142
+ "@types/node": "~20.1.4",
143
143
  "@types/normalize-path": "~3.0.0",
144
144
  "@types/postcss-preset-env": "~8.0.0",
145
145
  "@types/rimraf": "~4.0.5",
@@ -153,7 +153,7 @@
153
153
  "@vitejs/plugin-react": "~4.0.0",
154
154
  "@vitest/coverage-c8": "~0.31.0",
155
155
  "autoprefixer": "~10.4.14",
156
- "axe-core": "~4.7.0",
156
+ "axe-core": "~4.7.1",
157
157
  "babel-plugin-date-fns": "~2.0.0",
158
158
  "babel-plugin-dynamic-import-node": "~2.3.3",
159
159
  "babel-plugin-import-remove-resource-query": "~1.0.0",
@@ -182,7 +182,7 @@
182
182
  "dotenv-webpack": "~8.0.1",
183
183
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
184
184
  "enhanced-resolve": "5.14.0",
185
- "esbuild": "~0.17.18",
185
+ "esbuild": "~0.17.19",
186
186
  "esbuild-loader": "~3.0.1",
187
187
  "esbuild-plugin-lodash": "~1.2.0",
188
188
  "esbuild-plugin-svgr": "~1.1.0",
@@ -199,7 +199,7 @@
199
199
  "eslint-plugin-eslint-comments": "~3.2.0",
200
200
  "eslint-plugin-import": "~2.27.5",
201
201
  "eslint-plugin-jest": "~27.2.1",
202
- "eslint-plugin-jsdoc": "~44.2.3",
202
+ "eslint-plugin-jsdoc": "~44.2.4",
203
203
  "eslint-plugin-jsx-a11y": "~6.7.1",
204
204
  "eslint-plugin-mdx": "~2.1.0",
205
205
  "eslint-plugin-prettier": "~4.2.1",
@@ -217,7 +217,7 @@
217
217
  "fast-glob": "~3.2.12",
218
218
  "find-up": "~6.3.0",
219
219
  "find-up-cli": "~5.0.0",
220
- "happy-dom": "~9.17.0",
220
+ "happy-dom": "~9.18.3",
221
221
  "helmet-csp": "~3.4.0",
222
222
  "html-loader": "~4.2.0",
223
223
  "html-webpack-plugin": "~5.5.1",
@@ -272,7 +272,7 @@
272
272
  "semantic-release": "~21.0.2",
273
273
  "slackify-markdown": "~4.3.1",
274
274
  "speed-measure-webpack-plugin": "~1.5.0",
275
- "storybook": "~7.0.11",
275
+ "storybook": "~7.0.12",
276
276
  "storybook-addon-turbo-build": "~2.0.1",
277
277
  "storybook-react-router": "~1.0.8",
278
278
  "style-loader": "~3.3.2",
@@ -288,7 +288,7 @@
288
288
  "update-notifier": "~6.0.2",
289
289
  "url-loader": "~4.1.1",
290
290
  "uuid": "~9.0.0",
291
- "vite": "~4.3.5",
291
+ "vite": "~4.3.6",
292
292
  "vitest": "~0.31.0",
293
293
  "vite-tsconfig-paths": "~4.2.0",
294
294
  "webpack": "~5.82.1",