@mui/internal-code-infra 0.1.1-canary.40 → 0.1.1-canary.41
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/README.md +1 -1
- package/package.json +2 -2
- package/src/cli/cmdBuildNew.mjs +3 -0
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ need explicit exports. The output keeps `export * as` and `import * as` namespac
|
|
|
99
99
|
turns into `<name>_exports` objects in unbundled builds. A namespace stays an object when Rolldown
|
|
100
100
|
inlines its constants into it, when the module reads it itself, or, in JavaScript, when it is
|
|
101
101
|
imported next to a default import or by a quoted name. The output is validated with publint, as in
|
|
102
|
-
`code-infra build`. With
|
|
102
|
+
`code-infra build`. The output isn't minified, and CJS files start with `"use strict"`. With
|
|
103
103
|
`--cjsCopy`, imported `.cjs` sources are emitted unchanged and imported as-is, as in
|
|
104
104
|
`code-infra build`, and the local modules they `require` are built at the paths they name; the build
|
|
105
105
|
fails when no bundle outputs a module at that path. `--cjsCopy` is deprecated: only
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.1.1-canary.
|
|
3
|
+
"version": "0.1.1-canary.41",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"publishConfig": {
|
|
200
200
|
"access": "public"
|
|
201
201
|
},
|
|
202
|
-
"gitSha": "
|
|
202
|
+
"gitSha": "47d6cbbcf6881aaf04c4c086b8598cd72a259985",
|
|
203
203
|
"scripts": {
|
|
204
204
|
"build": "tsc -p tsconfig.build.json",
|
|
205
205
|
"typescript": "tsc -noEmit",
|
package/src/cli/cmdBuildNew.mjs
CHANGED
|
@@ -384,6 +384,8 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
|
|
|
384
384
|
root: SOURCE_DIR,
|
|
385
385
|
outDir,
|
|
386
386
|
clean: true,
|
|
387
|
+
// Minification is the consumer's concern.
|
|
388
|
+
minify: false,
|
|
387
389
|
format: Object.fromEntries(
|
|
388
390
|
bundles.map((bundle) => [FORMATS[bundle], { target: getTarget(cwd, bundle) }]),
|
|
389
391
|
),
|
|
@@ -427,6 +429,7 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
|
|
|
427
429
|
deps: { neverBundle: true },
|
|
428
430
|
outputOptions: {
|
|
429
431
|
exports: 'named',
|
|
432
|
+
strict: true,
|
|
430
433
|
// Returning the id itself would print relative externals unresolved; `undefined` keeps
|
|
431
434
|
// Rolldown's own path for them.
|
|
432
435
|
paths: /** @type {(id: string) => string} */ (
|