Commit Graph

8 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
7ae568ab1e refactor: streamline NLS messages writing in finalizeNLS function 2026-02-11 14:48:47 +01:00
Johannes
34ced5fa6e write 2026-02-11 10:21:02 +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
ca10b50e6b fix: update regex in replaceInOutput to handle both single and double quotes for NLS placeholders 2026-02-04 11:39:01 +01:00
Johannes
cacf5f84fc feat: enhance finalizeNLS to support writing to multiple output directories for backwards compatibility 2026-02-03 20:36:55 +01:00
Johannes
73dcb4734d feat: implement esbuild-based bundling tasks and enhance NLS processing 2026-02-02 18:04:20 +01:00
Johannes
7642c07690 feat(nls): implement NLS plugin for esbuild with message extraction and processing 2026-01-30 18:31:27 +01:00