Commit Graph

7 Commits

Author SHA1 Message Date
Johannes Rieken
9c2922a85d feat: enhance source map handling in NLS and private field conversion (#296957)
* feat: enhance source map handling in NLS and private field conversion

- Implemented inline source maps in the NLS plugin to ensure accurate mapping from transformed source back to original.
- Modified `transformToPlaceholders` to return edits for source map adjustments.
- Added `adjustSourceMap` function to update source maps based on text edits in `convertPrivateFields`.
- Introduced tests for source map accuracy in both NLS and private field conversion scenarios.
- Updated documentation to reflect changes in source map handling and the rationale behind accepting column imprecision.

* address PR review: fix source name collision, guard unmapped segments, reorder mangle before NLS
2026-02-23 12:09:29 +00:00
Johannes
814a9ce765 Refactor resource copying for transpile and bundle builds
- Implemented copyAllNonTsFiles() for transpile/dev builds to copy all non-TS files from src/ to output, aligning with previous gulp behavior.
- Retained copyResources() for production builds using curated resource patterns.
- Removed unnecessary devOnlyResourcePatterns and testFixturePatterns.
- Updated watch mode to accept any non-TS file changes.
2026-02-13 15:38:39 +01:00
Johannes
e562211c1f fix: remove keyboardMapEntryPoints from desktop entry points and nls.messages.js generation 2026-02-10 17:30:14 +01:00
Johannes
18456cc05f source maps: sourcesContent, CDN URL rewriting, replace @parcel/watcher 2026-02-10 11:10:12 +01:00
Johannes
6d6e9a4f3e Refactor build process: remove unused entry points and update resource patterns for desktop build 2026-02-09 18:00:57 +01:00
Johannes
878df8b755 Refactor build system to support esbuild with new transpile and typecheck tasks 2026-02-06 11:36:52 +01:00
Johannes
772a2d094e Refactor build system: replace createFileContentMapper with fileContentMapperPlugin for better integration with esbuild 2026-02-05 18:38:36 +01:00