Skip to content

Commit

Permalink
perf(): better optimize esm build
Browse files Browse the repository at this point in the history
- Drops cssVarShim code
- Drops supportsListenerOptions check
  • Loading branch information
manucorporat committed Aug 8, 2019
1 parent f48d8de commit 66571d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compiler/app-core/optimize-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export async function optimizeModule(config: d.Config, compilerCtx: d.CompilerCt
if (sourceTarget !== 'es5' && isCore) {
if (!isDebug) {
opts.compress.passes = 3;
opts.compress.global_defs = {
supportsListenerOptions: true,
cssVarShim: false
};
opts.compress.pure_funcs = ['getHostRef', ...opts.compress.pure_funcs];
}

Expand Down

0 comments on commit 66571d0

Please sign in to comment.