perf(ivy): use buildOptimizer in hello_world__render3__rollup integration test (#21744)
PR Close #21744
This commit is contained in:
parent
18174e5564
commit
dd48df105b
|
@ -25,7 +25,7 @@
|
||||||
"hello_world__render3__rollup": {
|
"hello_world__render3__rollup": {
|
||||||
"master": {
|
"master": {
|
||||||
"uncompressed": {
|
"uncompressed": {
|
||||||
"bundle": 59334
|
"bundle": 34304
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -20,15 +20,14 @@
|
||||||
"lite-server": "2.2.2",
|
"lite-server": "2.2.2",
|
||||||
"protractor": "file:../../node_modules/protractor",
|
"protractor": "file:../../node_modules/protractor",
|
||||||
"rollup": "0.54.0",
|
"rollup": "0.54.0",
|
||||||
|
"rollup-plugin-angular-optimizer": "0.2.0",
|
||||||
"rollup-plugin-commonjs": "8.2.6",
|
"rollup-plugin-commonjs": "8.2.6",
|
||||||
"rollup-plugin-node-resolve": "3.0.2",
|
"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"
|
"rollup-plugin-uglify": "2.0.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "webdriver-manager update --gecko false --standalone false $CHROMEDRIVER_VERSION_ARG",
|
"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",
|
"test": "yarn run rollup && concurrently \"yarn run serve\" \"yarn run protractor\" --kill-others --success first",
|
||||||
"serve": "lite-server -c e2e/browser.config.json",
|
"serve": "lite-server -c e2e/browser.config.json",
|
||||||
"preprotractor": "tsc -p e2e",
|
"preprotractor": "tsc -p e2e",
|
||||||
|
|
|
@ -1,32 +1,21 @@
|
||||||
|
import buildOptimizer from 'rollup-plugin-angular-optimizer'
|
||||||
import commonjs from 'rollup-plugin-commonjs';
|
import commonjs from 'rollup-plugin-commonjs';
|
||||||
import nodeResolve from 'rollup-plugin-node-resolve';
|
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';
|
import uglify from 'rollup-plugin-uglify';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: `src/index.ts`,
|
input: `built/index.js`,
|
||||||
output: {
|
output: {
|
||||||
name: 'hw',
|
name: 'hw',
|
||||||
file: `dist/bundle.js`,
|
file: `dist/bundle.js`,
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
sourcemap: false
|
sourcemap: true
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
typescript2({
|
buildOptimizer(),
|
||||||
typescript: require('typescript'),
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true
|
|
||||||
}),
|
|
||||||
replace({
|
|
||||||
delimiters: ['', ''],
|
|
||||||
values: {
|
|
||||||
'/** @class */': '/** @__PURE__ */'
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
nodeResolve({jsnext: true, module: true}),
|
nodeResolve({jsnext: true, module: true}),
|
||||||
commonjs({
|
commonjs({
|
||||||
include: 'node_modules/rxjs/**',
|
include: 'node_modules/rxjs/**'
|
||||||
}),
|
}),
|
||||||
uglify({
|
uglify({
|
||||||
mangle: true,
|
mangle: true,
|
||||||
|
|
|
@ -11,19 +11,15 @@
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"sourceMap": false,
|
"sourceMap": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"outDir": "built",
|
"outDir": "built",
|
||||||
"rootDir": ".",
|
"rootDir": "./src",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"types": []
|
"types": [],
|
||||||
|
"lib": ["es2015", "dom"]
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
"exclude": [
|
"src/index.ts"
|
||||||
"vendor",
|
|
||||||
"node_modules",
|
|
||||||
"built",
|
|
||||||
"dist",
|
|
||||||
"e2e"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue