Skip to content

Commit

Permalink
Don't use terser
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 2, 2024
1 parent b14d465 commit 7a90c98
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions packages/@glimmer-workspace/build/lib/config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
/* eslint-disable no-console */
// @ts-check
import { existsSync, readFileSync } from 'node:fs';
import { createRequire } from 'node:module';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';

import replace from '@rollup/plugin-replace';
import terser from '@rollup/plugin-terser';
import * as insert from 'rollup-plugin-insert';
import rollupTS from 'rollup-plugin-ts';
import ts from 'typescript';

import inline from './inline.js';

const require = createRequire(import.meta.url);

// eslint-disable-next-line import/no-named-as-default-member
const { ModuleKind, ModuleResolutionKind, ScriptTarget, ImportsNotUsedAsValues } = ts;

Expand Down Expand Up @@ -380,31 +376,6 @@ export class Package {
commonjs(),
nodeResolve(),
...this.replacements(env),
...(env === 'prod'
? [
terser({
module: true,
// to debug the output, uncomment this so you can read the
// identifiers, unchanged
// mangle: false,
compress: {
passes: 3,
},
}),
]
: [
terser({
module: true,
mangle: false,
compress: {
passes: 3,
},
format: {
comments: 'all',
beautify: true,
},
}),
]),
postcss(),
typescript(this.#package, {
target: ScriptTarget.ES2022,
Expand Down

0 comments on commit 7a90c98

Please sign in to comment.