Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 45b0255

Browse files
committed
fix(optimization): stop removing decorators
stop removing decorators
1 parent 7550764 commit 45b0255

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/rollup/ionic-rollup-resolver-plugin.ts

-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { BuildContext } from '../util/interfaces';
44
import { Logger } from '../logger/logger';
55
import { dirname, join, resolve } from 'path';
66
import * as pluginutils from 'rollup-pluginutils';
7-
import { optimizeJavascript } from '../aot/optimization';
87

98
export const PLUGIN_NAME = 'ion-rollup-resolver';
109

@@ -56,10 +55,6 @@ export function ionicRollupResolverPlugin(context: BuildContext) {
5655
return null;
5756
}
5857

59-
// remove decorators if prod build
60-
if (context.optimizeJs) {
61-
file.content = optimizeJavascript(jsSourcePath, file.content);
62-
}
6358

6459
let mapContent: string = null;
6560
if (map && map.content) {

0 commit comments

Comments
 (0)