create-packer 1.35.10 → 1.35.12

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.10",
3
+ "version": "1.35.12",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -39,13 +39,13 @@
39
39
  "@commitlint/config-conventional": "17.6.1",
40
40
  "@commitlint/cz-commitlint": "17.5.0",
41
41
  "@rollup/plugin-eslint": "9.0.5",
42
- "@rsbuild/core": "1.0.1-rc.4",
43
- "@rsbuild/plugin-eslint": "1.0.2",
44
- "@rsbuild/plugin-react": "1.0.1-rc.4",
42
+ "@rsbuild/core": "1.0.4",
43
+ "@rsbuild/plugin-eslint": "1.0.3",
44
+ "@rsbuild/plugin-react": "1.0.2",
45
45
  "@rsbuild/plugin-styled-components": "1.0.1",
46
- "@rsbuild/plugin-svgr": "1.0.1-rc.4",
47
- "@rsbuild/plugin-type-check": "1.0.1-rc.4",
48
- "@rsdoctor/rspack-plugin": "0.4.1",
46
+ "@rsbuild/plugin-svgr": "1.0.2",
47
+ "@rsbuild/plugin-type-check": "1.0.1",
48
+ "@rsdoctor/rspack-plugin": "0.4.2",
49
49
  "@types/lodash-es": "4.17.7",
50
50
  "@types/node": "18.16.0",
51
51
  "@types/qs": "6.9.7",
@@ -54,7 +54,6 @@
54
54
  "@typescript-eslint/eslint-plugin": "7.0.2",
55
55
  "@typescript-eslint/parser": "7.0.2",
56
56
  "autoprefixer": "10.4.14",
57
- "babel-plugin-styled-components": "2.1.4",
58
57
  "commitizen": "4.3.0",
59
58
  "cssnano": "6.0.0",
60
59
  "eslint": "8.56.0",
@@ -74,8 +73,7 @@
74
73
  "stylelint": "16.2.1",
75
74
  "stylelint-config-standard": "36.0.1",
76
75
  "stylelint-webpack-plugin": "5.0.0",
77
- "typescript": "5.5.2",
78
- "webpack-bundle-analyzer": "4.10.1"
76
+ "typescript": "5.5.2"
79
77
  },
80
78
  "config": {
81
79
  "commitizen": {
@@ -4,7 +4,6 @@ import { pluginStyledComponents } from '@rsbuild/plugin-styled-components'
4
4
  import { pluginEslint } from '@rsbuild/plugin-eslint'
5
5
  import StylelintWebpackPlugin from 'stylelint-webpack-plugin'
6
6
  import { pluginTypeCheck } from '@rsbuild/plugin-type-check'
7
- import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
8
7
  import { RsdoctorRspackPlugin } from '@rsdoctor/rspack-plugin'
9
8
  import { pluginSvgr } from '@rsbuild/plugin-svgr'
10
9
  import { createChunks } from './scripts/createChunks'
@@ -26,20 +25,20 @@ export default defineConfig(({ envMode, command }) => {
26
25
  }
27
26
  },
28
27
  dev: {
29
- distPath: {
30
- root: 'dist'
31
- },
32
28
  assetPrefix: publicPath,
33
29
  minify: envMode !== 'dev'
34
30
  },
35
31
  output: {
36
- assetPrefix: publicPath
32
+ assetPrefix: publicPath,
33
+ distPath: {
34
+ root: 'dist'
35
+ },
36
+ cleanDistPath: true
37
37
  },
38
38
  tools: {
39
39
  rspack: {
40
40
  plugins: [
41
41
  new StylelintWebpackPlugin(),
42
- envMode === 'analyse' && new BundleAnalyzerPlugin(),
43
42
  process.env.RSDOCTOR && new RsdoctorRspackPlugin()
44
43
  ]
45
44
  }
@@ -54,7 +53,7 @@ export default defineConfig(({ envMode, command }) => {
54
53
  transpileTemplateLiterals: false
55
54
  }),
56
55
  pluginSvgr(),
57
- pluginReact({})
56
+ pluginReact()
58
57
  ],
59
58
  performance: {
60
59
  removeConsole: command === 'build' ? ['log'] : false,
@@ -64,14 +63,12 @@ export default defineConfig(({ envMode, command }) => {
64
63
  minChunks: 1,
65
64
  cacheGroups: createChunks([{ libs: ['react', 'react-dom'], name: 'react' }])
66
65
  }
67
- }
66
+ },
67
+ bundleAnalyze: envMode === 'analyse' ? { openAnalyzer: true } : void 0
68
68
  },
69
69
  server: {
70
70
  host: '0.0.0.0',
71
71
  compress: false,
72
- publicDir: {
73
- name: publicPath
74
- },
75
72
  historyApiFallback: {
76
73
  disableDotRule: true,
77
74
  index: publicPath