@typestyles/build-runner 0.0.0-unstable.de79e3a17eb1 → 0.0.0-unstable.e3b4bf19e2a2

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 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typestyles/build-runner",
3
- "version": "0.0.0-unstable.de79e3a17eb1",
3
+ "version": "0.0.0-unstable.e3b4bf19e2a2",
4
4
  "description": "Shared module execution utilities for typestyles build integrations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -29,7 +29,7 @@
29
29
  "eslint": "^9.39.2",
30
30
  "tsup": "^8.0.0",
31
31
  "typescript": "^5.4.0",
32
- "typestyles": "0.0.0-unstable.de79e3a17eb1",
32
+ "typestyles": "0.0.0-unstable.e3b4bf19e2a2",
33
33
  "vitest": "^3.0.0"
34
34
  },
35
35
  "license": "Apache-2.0",