@typestyles/build-runner 0.5.1 → 0.5.2
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/dist/index.cjs +10 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -549,6 +549,16 @@ async function runTypestylesBuild({
|
|
|
549
549
|
// calls silently dropped as "unused". Disable tree shaking here so every
|
|
550
550
|
// registration in the extraction graph survives.
|
|
551
551
|
treeShaking: false,
|
|
552
|
+
// `treeShaking: false` only stops esbuild from pruning declarations
|
|
553
|
+
// *within* an already-included module. It's a separate esbuild behavior
|
|
554
|
+
// by the treeShaking option — that drops a plain bare import entirely
|
|
555
|
+
// (`import './some-lib'` with no binding at all) when it resolves to a
|
|
556
|
+
// module/package marked "sideEffects": false, before that module is ever
|
|
557
|
+
// considered for inclusion. A real extraction entry is exactly this
|
|
558
|
+
// shape: several side-effect-only imports, any one of which may point at
|
|
559
|
+
// a (correctly) tree-shakeable component library. Ignore both kinds of
|
|
560
|
+
// annotation so every import in the extraction graph is included.
|
|
561
|
+
ignoreAnnotations: true,
|
|
552
562
|
stdin: {
|
|
553
563
|
contents: importLines,
|
|
554
564
|
resolveDir: root,
|
package/dist/index.js
CHANGED
|
@@ -503,6 +503,16 @@ async function runTypestylesBuild({
|
|
|
503
503
|
// calls silently dropped as "unused". Disable tree shaking here so every
|
|
504
504
|
// registration in the extraction graph survives.
|
|
505
505
|
treeShaking: false,
|
|
506
|
+
// `treeShaking: false` only stops esbuild from pruning declarations
|
|
507
|
+
// *within* an already-included module. It's a separate esbuild behavior
|
|
508
|
+
// by the treeShaking option — that drops a plain bare import entirely
|
|
509
|
+
// (`import './some-lib'` with no binding at all) when it resolves to a
|
|
510
|
+
// module/package marked "sideEffects": false, before that module is ever
|
|
511
|
+
// considered for inclusion. A real extraction entry is exactly this
|
|
512
|
+
// shape: several side-effect-only imports, any one of which may point at
|
|
513
|
+
// a (correctly) tree-shakeable component library. Ignore both kinds of
|
|
514
|
+
// annotation so every import in the extraction graph is included.
|
|
515
|
+
ignoreAnnotations: true,
|
|
506
516
|
stdin: {
|
|
507
517
|
contents: importLines,
|
|
508
518
|
resolveDir: root,
|