@mui/internal-bundle-size-checker 1.0.9-canary.34 → 1.0.9-canary.35

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/builder.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-bundle-size-checker",
3
- "version": "1.0.9-canary.34",
3
+ "version": "1.0.9-canary.35",
4
4
  "description": "Bundle size checker for MUI packages.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -38,7 +38,7 @@
38
38
  "@types/micromatch": "^4.0.9",
39
39
  "@types/yargs": "^17.0.33"
40
40
  },
41
- "gitSha": "4c0f0d55b88cdb008a066a7de077b7a20def6245",
41
+ "gitSha": "ea7dfcb14068be0dddaa7827a0d294fc5de6e986",
42
42
  "scripts": {
43
43
  "typescript": "tsc -p tsconfig.json",
44
44
  "test": "pnpm -w test --project @mui/internal-bundle-size-checker"
package/src/builder.js CHANGED
@@ -75,7 +75,7 @@ async function createViteConfig(entry, args) {
75
75
  emptyOutDir: true,
76
76
  rollupOptions: {
77
77
  input: '/index.tsx',
78
- external: externalsArray,
78
+ external: (id) => externalsArray.some((ext) => id === ext || id.startsWith(`${ext}/`)),
79
79
  plugins: [
80
80
  ...(args.analyze
81
81
  ? [
@@ -108,7 +108,7 @@ async function createViteConfig(entry, args) {
108
108
  },
109
109
 
110
110
  define: {
111
- 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
111
+ 'process.env.NODE_ENV': JSON.stringify('production'),
112
112
  },
113
113
  logLevel: args.verbose ? 'info' : 'silent',
114
114
  // Add plugins to handle virtual entry points