@elliemae/pui-cli 6.0.0-beta.8 → 6.0.0-beta.9

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.
@@ -1,3 +1,5 @@
1
- module.exports = {
2
- ReactComponent: 'IMAGE_MOCK',
3
- };
1
+ // eslint-disable-next-line no-unused-vars
2
+ import * as React from 'react';
3
+
4
+ export default 'SvgrURL';
5
+ export const ReactComponent = 'div';
@@ -15,7 +15,6 @@ const {
15
15
  modulesToTranspile,
16
16
  getAlias,
17
17
  getPaths,
18
- getMediaPath,
19
18
  } = require('./helpers');
20
19
  const { ESBUILD_TARGET } = require('../esbuild');
21
20
 
@@ -215,19 +214,13 @@ module.exports = (options) => ({
215
214
  type: 'asset/resource',
216
215
  },
217
216
  {
218
- test: /\.svg$/,
219
- exclude: excludeNodeModulesExcept(['@elliemae/*']),
220
- use: [
221
- {
222
- loader: '@svgr/webpack',
223
- },
224
- {
225
- loader: 'file-loader',
226
- options: {
227
- name: getMediaPath(),
228
- },
229
- },
230
- ],
217
+ type: 'asset',
218
+ resourceQuery: /url/, // *.svg?react
219
+ },
220
+ {
221
+ test: /\.svg$/i,
222
+ issuer: /\.[jt]sx?$/,
223
+ use: ['@svgr/webpack'],
231
224
  },
232
225
  {
233
226
  test: /\.(jpe?g|png|gif|ico)$/i,
@@ -18,7 +18,6 @@ const {
18
18
  modulesToTranspile,
19
19
  getAssetPath,
20
20
  getAlias,
21
- getMediaPath,
22
21
  } = require('./helpers');
23
22
  const { ESBUILD_TARGET } = require('../esbuild');
24
23
 
@@ -172,19 +171,13 @@ module.exports = (options) => ({
172
171
  type: 'asset/resource',
173
172
  },
174
173
  {
175
- test: /\.svg$/,
176
- exclude: excludeNodeModulesExcept(['@elliemae/*']),
177
- use: [
178
- {
179
- loader: '@svgr/webpack',
180
- },
181
- {
182
- loader: 'file-loader',
183
- options: {
184
- name: getMediaPath(),
185
- },
186
- },
187
- ],
174
+ type: 'asset',
175
+ resourceQuery: /url/, // *.svg?react
176
+ },
177
+ {
178
+ test: /\.svg$/i,
179
+ issuer: /\.[jt]sx?$/,
180
+ use: ['@svgr/webpack'],
188
181
  },
189
182
  {
190
183
  test: /\.(jpe?g|png|gif|ico)$/i,
@@ -9,7 +9,6 @@ const {
9
9
  getAlias,
10
10
  excludeNodeModulesExcept,
11
11
  modulesToTranspile,
12
- getMediaPath,
13
12
  } = require('./helpers');
14
13
  const { ESBUILD_TARGET } = require('../esbuild');
15
14
 
@@ -112,19 +111,13 @@ const getModuleRules = () => [
112
111
  type: 'asset/resource',
113
112
  },
114
113
  {
115
- test: /\.svg$/,
116
- exclude: excludeNodeModulesExcept(['@elliemae/*']),
117
- use: [
118
- {
119
- loader: '@svgr/webpack',
120
- },
121
- {
122
- loader: 'file-loader',
123
- options: {
124
- name: getMediaPath(),
125
- },
126
- },
127
- ],
114
+ type: 'asset',
115
+ resourceQuery: /url/, // *.svg?react
116
+ },
117
+ {
118
+ test: /\.svg$/i,
119
+ issuer: /\.[jt]sx?$/,
120
+ use: ['@svgr/webpack'],
128
121
  },
129
122
  {
130
123
  test: /\.(jpe?g|png|gif|ico)$/i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.0.0-beta.8",
3
+ "version": "6.0.0-beta.9",
4
4
  "private": false,
5
5
  "description": "EllieMae Platform UI CLI",
6
6
  "sideEffects": false,
@@ -66,7 +66,7 @@
66
66
  "@commitlint/cli": "~15.0.0",
67
67
  "@commitlint/config-conventional": "~15.0.0",
68
68
  "@elliemae/browserslist-config-elliemae": "~1.2.1",
69
- "@pmmmwh/react-refresh-webpack-plugin": "~0.5.2",
69
+ "@pmmmwh/react-refresh-webpack-plugin": "~0.5.3",
70
70
  "@semantic-release/changelog": "~6.0.1",
71
71
  "@semantic-release/exec": "~6.0.2",
72
72
  "@semantic-release/git": "~10.0.1",
@@ -86,7 +86,7 @@
86
86
  "@storybook/react": "~6.3.12",
87
87
  "@storybook/theming": "~6.3.12",
88
88
  "@stylelint/postcss-css-in-js": "~0.37.2",
89
- "@svgr/webpack": "~5.5.0",
89
+ "@svgr/webpack": "~6.0.0",
90
90
  "@testing-library/jest-dom": "~5.15.1",
91
91
  "@testing-library/react": "~12.1.2",
92
92
  "@testing-library/react-hooks": "~7.0.2",
@@ -94,8 +94,8 @@
94
94
  "@types/node": "~16.11.10",
95
95
  "@types/rimraf": "~3.0.2",
96
96
  "@types/testing-library__jest-dom": "~5.14.1",
97
- "@typescript-eslint/eslint-plugin": "~5.4.0",
98
- "@typescript-eslint/parser": "~5.4.0",
97
+ "@typescript-eslint/eslint-plugin": "~5.5.0",
98
+ "@typescript-eslint/parser": "~5.5.0",
99
99
  "@vitejs/plugin-react": "~1.1.0",
100
100
  "autoprefixer": "~10.4.0",
101
101
  "axe-core": "~4.3.5",
@@ -107,7 +107,7 @@
107
107
  "babel-plugin-lodash": "~3.3.4",
108
108
  "babel-plugin-module-resolver": "~4.1.0",
109
109
  "babel-plugin-source-map-support": "~2.1.3",
110
- "babel-plugin-styled-components": "~2.0.1",
110
+ "babel-plugin-styled-components": "~2.0.2",
111
111
  "babel-plugin-transform-react-remove-prop-types": "~0.4.24",
112
112
  "babel-plugin-transform-remove-console": "~6.9.4",
113
113
  "babel-plugin-transform-strip-block": "~0.0.4",
@@ -160,7 +160,7 @@
160
160
  "express": "~4.17.1",
161
161
  "express-pino-logger": "~7.0.0",
162
162
  "file-loader": "~6.2.0",
163
- "fork-ts-checker-webpack-plugin": "~6.4.2",
163
+ "fork-ts-checker-webpack-plugin": "~6.5.0",
164
164
  "helmet-csp": "~3.4.0",
165
165
  "html-loader": "~3.0.1",
166
166
  "html-webpack-plugin": "~5.5.0",
@@ -171,7 +171,7 @@
171
171
  "imports-loader": "~3.1.1",
172
172
  "ip": "~1.1.5",
173
173
  "jest-axe": "~5.0.1",
174
- "jest-cli": "~27.3.1",
174
+ "jest-cli": "~27.4.0",
175
175
  "jest-sonar-reporter": "~2.0.0",
176
176
  "jest-styled-components": "~7.0.8",
177
177
  "jscodeshift": "~0.13.0",
@@ -182,15 +182,15 @@
182
182
  "moment": "~2.29.1",
183
183
  "moment-locales-webpack-plugin": "~1.2.0",
184
184
  "msw": "~0.35.0",
185
- "node-plop": "~0.26.3",
185
+ "node-plop": "~0.30.0",
186
186
  "nodemon": "~2.0.15",
187
187
  "npm-check-updates": "12.0.2",
188
188
  "null-loader": "~4.0.1",
189
- "pino": "~7.4.1",
189
+ "pino": "~7.5.0",
190
190
  "pino-pretty": "~7.2.0",
191
191
  "pinst": "~2.1.6",
192
- "plop": "~2.7.6",
193
- "postcss": "~8.4.3",
192
+ "plop": "~3.0.1",
193
+ "postcss": "~8.4.4",
194
194
  "postcss-jsx": "~0.36.4",
195
195
  "postcss-html": "~1.3.0",
196
196
  "postcss-markdown": "~1.2.0",