From 45ce614204a9a1095ef44e05da7e238eadb72e50 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:32:51 -0400 Subject: [PATCH] We can keep @glimmer/debug separate, and stripping still happesn --- packages/@glimmer-workspace/build/lib/config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/@glimmer-workspace/build/lib/config.js b/packages/@glimmer-workspace/build/lib/config.js index dc20e4de94..a331ca3be6 100644 --- a/packages/@glimmer-workspace/build/lib/config.js +++ b/packages/@glimmer-workspace/build/lib/config.js @@ -106,7 +106,7 @@ export function typescript(pkg, config) { /** @type {['is' | 'startsWith', string[], 'inline' | 'external'][]} */ const EXTERNAL_OPTIONS = [ - ['is', ['tslib', '@glimmer/local-debug-flags', '@glimmer/debug'], 'inline'], + ['is', ['tslib', '@glimmer/local-debug-flags'], 'inline'], ['is', ['@handlebars/parser', 'simple-html-tokenizer', 'babel-plugin-debug-macros'], 'external'], ['startsWith', ['.', '/', '#', '@babel/runtime/', process.cwd().replace(/\\/gu, '/')], 'inline'], ['startsWith', ['@glimmer/', '@simple-dom/', '@babel/', 'node:'], 'external'], @@ -317,6 +317,9 @@ export class Package { ? [ terser({ module: true, + // to debug the output, uncomment this so you can read the + // identifiers, unchanged + // mangle: false, compress: { passes: 3, },