Skip to content

Dev/tssl#81

Merged
burner1024 merged 12 commits intomasterfrom
dev/tssl
Jan 1, 2026
Merged

Dev/tssl#81
burner1024 merged 12 commits intomasterfrom
dev/tssl

Conversation

@burner1024
Copy link
Member

Add initial tssl implementation.

…w.* methods

2. bundle() returns metafile data - Returns {code, inputFiles} instead of just code string
3. extractInlineFunctionsFromFiles - Uses esbuild's metafile input list instead of scanning all of node_modules directory
4. AST-based cleanupEsbuildOutput - Uses ts-morph instead of regex for alias resolution and import removal
5. Collision detection - Handles esbuild's name2 → name22 renaming pattern
6. Numeric literal keys - Object keys like {1: value} no longer get quoted
  - Added noSideEffectsPlugin() - shared plugin that marks all modules as side-effect-free for tree-shaking
  - Added constant renaming fix (DIK_F4 → DIK_F42 issue) using originalConstants parameter
2. tssl.ts:
  - Uses noSideEffectsPlugin() for tree-shaking
  - Passes original constants to cleanupEsbuildOutput() to fix esbuild renaming
3. tbaf/bundle.ts:
  - Uses shared noSideEffectsPlugin()
@burner1024 burner1024 merged commit 9fdf246 into master Jan 1, 2026
2 checks passed
@burner1024 burner1024 deleted the dev/tssl branch January 1, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant