perf(ivy): use buildOptimizer in hello_world__render3__rollup integration test (#21744)

PR Close #21744
This commit is contained in:
Marc Laval 2018-01-24 11:56:14 +01:00 committed by Jason Aden
parent 18174e5564
commit dd48df105b
6 changed files with 4844 additions and 30 deletions

View File

@ -25,7 +25,7 @@
"hello_world__render3__rollup": {
"master": {
"uncompressed": {
"bundle": 59334
"bundle": 34304
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -20,15 +20,14 @@
"lite-server": "2.2.2",
"protractor": "file:../../node_modules/protractor",
"rollup": "0.54.0",
"rollup-plugin-angular-optimizer": "0.2.0",
"rollup-plugin-commonjs": "8.2.6",
"rollup-plugin-node-resolve": "3.0.2",
"rollup-plugin-replace": "2.0.0",
"rollup-plugin-typescript2": "0.10.0",
"rollup-plugin-uglify": "2.0.1"
},
"scripts": {
"postinstall": "webdriver-manager update --gecko false --standalone false $CHROMEDRIVER_VERSION_ARG",
"rollup": "rollup -c rollup.config.js",
"rollup": "tsc && rollup -c rollup.config.js",
"test": "yarn run rollup && concurrently \"yarn run serve\" \"yarn run protractor\" --kill-others --success first",
"serve": "lite-server -c e2e/browser.config.json",
"preprotractor": "tsc -p e2e",

View File

@ -1,32 +1,21 @@
import buildOptimizer from 'rollup-plugin-angular-optimizer'
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import replace from 'rollup-plugin-replace';
import typescript2 from 'rollup-plugin-typescript2';
import uglify from 'rollup-plugin-uglify';
export default {
input: `src/index.ts`,
input: `built/index.js`,
output: {
name: 'hw',
file: `dist/bundle.js`,
format: 'iife',
sourcemap: false
sourcemap: true
},
plugins: [
typescript2({
typescript: require('typescript'),
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}),
replace({
delimiters: ['', ''],
values: {
'/** @class */': '/** @__PURE__ */'
}
}),
buildOptimizer(),
nodeResolve({jsnext: true, module: true}),
commonjs({
include: 'node_modules/rxjs/**',
include: 'node_modules/rxjs/**'
}),
uglify({
mangle: true,

View File

@ -11,19 +11,15 @@
"strict": true,
"target": "es5",
"noImplicitAny": false,
"sourceMap": false,
"sourceMap": true,
"experimentalDecorators": true,
"outDir": "built",
"rootDir": ".",
"rootDir": "./src",
"declaration": true,
"types": []
"types": [],
"lib": ["es2015", "dom"]
},
"exclude": [
"vendor",
"node_modules",
"built",
"dist",
"e2e"
"files": [
"src/index.ts"
]
}

File diff suppressed because it is too large Load Diff