@reactunity/scripts 0.11.0 → 0.12.0

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.
@@ -288,6 +288,8 @@ const baseConfigFactory = function (webpackEnv) {
288
288
  }),
289
289
  ],
290
290
  runtimeChunk: false,
291
+ chunkIds: 'named',
292
+ moduleIds: 'named',
291
293
  },
292
294
  resolve: {
293
295
  // This allows you to set a fallback for where webpack should look for modules.
@@ -366,6 +368,32 @@ const baseConfigFactory = function (webpackEnv) {
366
368
  },
367
369
  },
368
370
  },
371
+ {
372
+ test: /\.svg$/,
373
+ use: [
374
+ {
375
+ loader: require.resolve('@svgr/webpack'),
376
+ options: {
377
+ prettier: false,
378
+ svgo: false,
379
+ svgoConfig: {
380
+ plugins: [{ removeViewBox: false }],
381
+ },
382
+ titleProp: true,
383
+ ref: true,
384
+ },
385
+ },
386
+ {
387
+ loader: require.resolve('file-loader'),
388
+ options: {
389
+ name: 'static/media/[name].[hash].[ext]',
390
+ },
391
+ },
392
+ ],
393
+ issuer: {
394
+ and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
395
+ },
396
+ },
369
397
  // Process application JS with Babel.
370
398
  // The preset includes JSX, Flow, TypeScript, and some ESnext features.
371
399
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactunity/scripts",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Configuration and scripts for React Unity.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,71 +44,72 @@
44
44
  }
45
45
  },
46
46
  "dependencies": {
47
- "@babel/core": "^7.17.10",
48
- "@babel/eslint-parser": "^7.17.0",
49
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
50
- "@types/react": "^18.0.9",
51
- "@types/webpack-env": "^1.16.4",
52
- "@typescript-eslint/eslint-plugin": "^5.22.0",
53
- "@typescript-eslint/parser": "^5.22.0",
54
- "babel-jest": "^28.1.0",
47
+ "@babel/core": "^7.18.5",
48
+ "@babel/eslint-parser": "^7.18.2",
49
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
50
+ "@svgr/webpack": "^6.2.1",
51
+ "@types/react": "^18.0.12",
52
+ "@types/webpack-env": "^1.17.0",
53
+ "@typescript-eslint/eslint-plugin": "^5.28.0",
54
+ "@typescript-eslint/parser": "^5.28.0",
55
+ "babel-jest": "^28.1.1",
55
56
  "babel-loader": "^8.2.5",
56
57
  "babel-plugin-named-asset-import": "^0.3.8",
57
58
  "babel-preset-react-app": "^10.0.1",
58
59
  "bfj": "^7.0.2",
59
- "camelcase": "^6.3.0",
60
+ "camelcase": "^7.0.0",
60
61
  "case-sensitive-paths-webpack-plugin": "^2.4.0",
61
62
  "confusing-browser-globals": "^1.0.11",
62
63
  "css-loader": "^6.7.1",
63
- "dotenv": "^16.0.0",
64
+ "dotenv": "^16.0.1",
64
65
  "dotenv-expand": "^8.0.3",
65
- "eslint": "^8.15.0",
66
+ "eslint": "^8.17.0",
66
67
  "eslint-plugin-import": "^2.26.0",
67
- "eslint-plugin-jest": "^26.1.5",
68
- "eslint-plugin-react": "^7.29.4",
69
- "eslint-plugin-react-hooks": "^4.5.0",
70
- "eslint-plugin-testing-library": "^5.4.0",
68
+ "eslint-plugin-jest": "^26.5.3",
69
+ "eslint-plugin-react": "^7.30.0",
70
+ "eslint-plugin-react-hooks": "^4.6.0",
71
+ "eslint-plugin-testing-library": "^5.5.1",
71
72
  "eslint-webpack-plugin": "^3.1.1",
72
73
  "file-loader": "^6.2.0",
73
74
  "fs-extra": "^10.1.0",
74
75
  "identity-obj-proxy": "^3.0.0",
75
- "jest": "^28.1.0",
76
- "jest-resolve": "^28.1.0",
76
+ "jest": "^28.1.1",
77
+ "jest-resolve": "^28.1.1",
77
78
  "jest-watch-typeahead": "^1.1.0",
78
79
  "mini-css-extract-plugin": "^2.6.0",
79
80
  "null-loader": "^4.0.1",
80
- "postcss": "^8.4.13",
81
- "postcss-loader": "^6.2.1",
81
+ "postcss": "^8.4.14",
82
+ "postcss-loader": "^7.0.0",
82
83
  "prompts": "^2.4.2",
83
84
  "raw-loader": "^4.0.2",
84
85
  "react-app-polyfill": "^3.0.0",
85
86
  "react-dev-utils": "^12.0.1",
86
- "react-refresh": "^0.13.0",
87
+ "react-refresh": "^0.14.0",
87
88
  "resolve": "^1.22.0",
88
89
  "resolve-url-loader": "^5.0.0",
89
- "sass": "^1.51.0",
90
- "sass-loader": "^12.6.0",
90
+ "sass": "^1.52.3",
91
+ "sass-loader": "^13.0.0",
91
92
  "semver": "^7.3.7",
92
- "source-map-loader": "^3.0.1",
93
+ "source-map-loader": "^4.0.0",
93
94
  "style-loader": "^3.3.1",
94
- "tailwindcss": "^3.0.24",
95
- "terser-webpack-plugin": "^5.3.1",
95
+ "tailwindcss": "^3.1.3",
96
+ "terser-webpack-plugin": "^5.3.3",
96
97
  "url-loader": "^4.1.1",
97
- "webpack": "^5.72.0",
98
- "webpack-dev-server": "^4.9.0",
98
+ "webpack": "^5.73.0",
99
+ "webpack-dev-server": "^4.9.2",
99
100
  "webpack-manifest-plugin": "^5.0.0"
100
101
  },
101
102
  "devDependencies": {
102
- "typescript": "^4.6.4"
103
+ "typescript": "^4.7.3"
103
104
  },
104
105
  "optionalDependencies": {
105
106
  "fsevents": "^2.3.2"
106
107
  },
107
108
  "peerDependencies": {
108
109
  "@reactunity/previewer": "*",
109
- "@reactunity/renderer": "^0.11.0",
110
+ "@reactunity/renderer": "^0.12.0",
110
111
  "react": "^18.0.0",
111
- "typescript": "^4.6.4"
112
+ "typescript": "^4.7.3"
112
113
  },
113
114
  "peerDependenciesMeta": {
114
115
  "@reactunity/previewer": {