@shuvi/toolpack 1.0.50 → 1.0.52

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.
@@ -189,11 +189,16 @@ function baseWebpackChain({ dev, outputDir, lightningCss, compiler, projectRoot,
189
189
  .oneOf('media')
190
190
  .exclude.merge([/\.(tsx|ts|js|cjs|mjs|jsx)$/, /\.html$/, /\.json$/])
191
191
  .end()
192
- .use('file-loader')
193
- .loader(require.resolve('file-loader'))
194
- .options({
195
- name: 'static/media/[name].[hash:8].[ext]'
192
+ // @ts-ignore
193
+ .type('asset/resource')
194
+ .set('generator', {
195
+ filename: 'static/media/[name].[hash:8].[ext]'
196
196
  });
197
+ // .use('file-loader')
198
+ // .loader(require.resolve('file-loader'))
199
+ // .options({
200
+ // name: 'static/media/[name].[hash:8].[ext]'
201
+ // });
197
202
  config.plugin('private/ignore-plugin').use(webpack_1.default.IgnorePlugin, [
198
203
  {
199
204
  resourceRegExp: /^\.\/locale$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/toolpack",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -20,7 +20,7 @@
20
20
  "node": ">= 16.0.0"
21
21
  },
22
22
  "dependencies": {
23
- "@shuvi/compiler": "1.0.50",
23
+ "@shuvi/compiler": "1.0.52",
24
24
  "@babel/core": "7.12.10",
25
25
  "@babel/plugin-proposal-class-properties": "7.12.1",
26
26
  "@babel/plugin-proposal-nullish-coalescing-operator": "7.10.1",
@@ -35,8 +35,8 @@
35
35
  "@babel/preset-typescript": "7.12.7",
36
36
  "@babel/runtime": "7.12.5",
37
37
  "lightningcss": "1.19.0",
38
- "@shuvi/shared": "1.0.50",
39
- "@shuvi/utils": "1.0.50",
38
+ "@shuvi/shared": "1.0.52",
39
+ "@shuvi/utils": "1.0.52",
40
40
  "babel-loader": "8.2.2",
41
41
  "babel-plugin-syntax-jsx": "6.18.0",
42
42
  "babel-plugin-transform-define": "2.0.0",
@@ -50,11 +50,10 @@
50
50
  "es-module-lexer": "0.10.5",
51
51
  "esbuild": "0.14.38",
52
52
  "esbuild-loader": "2.19.0",
53
- "file-loader": "6.2.0",
54
53
  "fork-ts-checker-webpack-plugin": "6.0.8",
55
54
  "fs-extra": "9.0.1",
56
55
  "ignore-loader": "0.1.2",
57
- "loader-utils": "2.0.0",
56
+ "loader-utils": "3.0.0",
58
57
  "mini-css-extract-plugin": "1.3.9",
59
58
  "mrmime": "1.0.0",
60
59
  "path-browserify": "1.0.1",