build: move named char references to json file to speed up build
This commit is contained in:
parent
9b1a548c6b
commit
3b5ef483a9
@ -37,6 +37,7 @@
|
||||
"prettier": "~1.14.0",
|
||||
"rollup": "^1.19.4",
|
||||
"rollup-plugin-alias": "^2.0.0",
|
||||
"rollup-plugin-json": "^4.0.0",
|
||||
"rollup-plugin-replace": "^2.2.0",
|
||||
"rollup-plugin-terser": "^5.1.1",
|
||||
"rollup-plugin-typescript2": "^0.24.0",
|
||||
|
2233
packages/compiler-dom/src/namedChars.json
Normal file
2233
packages/compiler-dom/src/namedChars.json
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,7 @@ const path = require('path')
|
||||
const ts = require('rollup-plugin-typescript2')
|
||||
const replace = require('rollup-plugin-replace')
|
||||
const alias = require('rollup-plugin-alias')
|
||||
const json = require('rollup-plugin-json')
|
||||
|
||||
if (!process.env.TARGET) {
|
||||
throw new Error('TARGET package must be specified via --environment flag.')
|
||||
@ -110,6 +111,9 @@ function createConfig(output, plugins = []) {
|
||||
// used alone.
|
||||
external: isGlobalBuild || isBrowserESMBuild ? [] : externals,
|
||||
plugins: [
|
||||
json({
|
||||
namedExports: false
|
||||
}),
|
||||
tsPlugin,
|
||||
aliasPlugin,
|
||||
createReplacePlugin(
|
||||
|
@ -12,6 +12,7 @@
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"experimentalDecorators": true,
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"removeComments": false,
|
||||
"jsx": "react",
|
||||
|
14
yarn.lock
14
yarn.lock
@ -6147,6 +6147,13 @@ rollup-plugin-alias@^2.0.0:
|
||||
dependencies:
|
||||
slash "^3.0.0"
|
||||
|
||||
rollup-plugin-json@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/rollup-plugin-json/-/rollup-plugin-json-4.0.0.tgz#a18da0a4b30bf5ca1ee76ddb1422afbb84ae2b9e"
|
||||
integrity sha512-hgb8N7Cgfw5SZAkb3jf0QXii6QX/FOkiIq2M7BAQIEydjHvTyxXHQiIzZaTFgx1GK0cRCHOCBHIyEkkLdWKxow==
|
||||
dependencies:
|
||||
rollup-pluginutils "^2.5.0"
|
||||
|
||||
rollup-plugin-replace@^2.2.0:
|
||||
version "2.2.0"
|
||||
resolved "https://registry.yarnpkg.com/rollup-plugin-replace/-/rollup-plugin-replace-2.2.0.tgz#f41ae5372e11e7a217cde349c8b5d5fd115e70e3"
|
||||
@ -6184,6 +6191,13 @@ rollup-pluginutils@2.8.1, rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1:
|
||||
dependencies:
|
||||
estree-walker "^0.6.1"
|
||||
|
||||
rollup-pluginutils@^2.5.0:
|
||||
version "2.8.2"
|
||||
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e"
|
||||
integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==
|
||||
dependencies:
|
||||
estree-walker "^0.6.1"
|
||||
|
||||
rollup@^1.19.4:
|
||||
version "1.21.4"
|
||||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.21.4.tgz#00a41a30f90095db890301b226cbe2918e4cf54d"
|
||||
|
Loading…
Reference in New Issue
Block a user