create-packer 1.35.4 → 1.35.6

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": "create-packer",
3
- "version": "1.35.4",
3
+ "version": "1.35.6",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,4 +1,4 @@
1
- import { defineConfig, loadEnv, RsbuildConfig, CacheGroups } from '@rsbuild/core'
1
+ import { defineConfig, loadEnv, CacheGroups } from '@rsbuild/core'
2
2
  import { pluginReact } from '@rsbuild/plugin-react'
3
3
  import { pluginStyledComponents } from '@rsbuild/plugin-styled-components'
4
4
  import { pluginEslint } from '@rsbuild/plugin-eslint'
@@ -6,6 +6,7 @@ import StylelintWebpackPlugin from 'stylelint-webpack-plugin'
6
6
  import { pluginTypeCheck } from '@rsbuild/plugin-type-check'
7
7
  import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
8
8
  import { RsdoctorRspackPlugin } from '@rsdoctor/rspack-plugin'
9
+ import { pluginSvgr } from '@rsbuild/plugin-svgr'
9
10
 
10
11
  function createChunks(chunks: Array<{ name: string; libs: string[] | RegExp; priority?: number }>) {
11
12
  const result: CacheGroups = {
@@ -63,6 +64,7 @@ export default defineConfig(({ envMode, command }) => {
63
64
  fileName: false,
64
65
  transpileTemplateLiterals: false
65
66
  }),
67
+ pluginSvgr(),
66
68
  pluginReact({})
67
69
  ],
68
70
  performance: {
@@ -88,5 +90,5 @@ export default defineConfig(({ envMode, command }) => {
88
90
  }
89
91
  }
90
92
  }
91
- } satisfies RsbuildConfig
93
+ }
92
94
  })