Skip to content

Commit

Permalink
perf(): property read does not have side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jun 20, 2019
1 parent 449892a commit ac312b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/app-core/bundle-app-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function bundleApp(config: d.Config, compilerCtx: d.CompilerCtx, bu
try {
const treeshake: TreeshakingOptions | boolean = !config.devMode && config.rollupConfig.inputOptions.treeshake !== false
? {
propertyReadSideEffects: false,
tryCatchDeoptimization: false,
}
: false;
Expand Down
1 change: 1 addition & 0 deletions src/compiler/component-hydrate/bundle-hydrate-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export async function bundleHydrateApp(config: d.Config, compilerCtx: d.Compiler
try {
const treeshake: TreeshakingOptions | boolean = !config.devMode && config.rollupConfig.inputOptions.treeshake !== false
? {
propertyReadSideEffects: false,
tryCatchDeoptimization: false,
}
: false;
Expand Down

0 comments on commit ac312b3

Please sign in to comment.