Skip to content

Commit

Permalink
We can keep @glimmer/debug separate, and stripping still happesn
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Sep 7, 2024
1 parent c0adb73 commit 45ce614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@glimmer-workspace/build/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 45ce614

Please sign in to comment.