fix(core): update

This commit is contained in:
Philipp Kunz 2019-04-30 16:08:09 +02:00
parent 72af757ea0
commit 69bdb3796d
3 changed files with 35 additions and 0 deletions

24
package-lock.json generated
View File

@ -665,6 +665,17 @@
"@babel/helper-plugin-utils": "^7.0.0"
}
},
"@babel/plugin-transform-runtime": {
"version": "7.4.4",
"resolved": "https://verdaccio.lossless.one/@babel%2fplugin-transform-runtime/-/plugin-transform-runtime-7.4.4.tgz",
"integrity": "sha512-aMVojEjPszvau3NRg+TIH14ynZLvPewH4xhlCW1w6A3rkxTS1m4uwzRclYR9oS+rl/dr+kT+pzbfHuAWP/lc7Q==",
"requires": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/helper-plugin-utils": "^7.0.0",
"resolve": "^1.8.1",
"semver": "^5.5.1"
}
},
"@babel/preset-env": {
"version": "7.4.4",
"resolved": "https://verdaccio.lossless.one/@babel%2fpreset-env/-/preset-env-7.4.4.tgz",
@ -1072,6 +1083,14 @@
}
}
},
"@babel/runtime": {
"version": "7.4.4",
"resolved": "https://verdaccio.lossless.one/@babel%2fruntime/-/runtime-7.4.4.tgz",
"integrity": "sha512-w0+uT71b6Yi7i5SE0co4NioIpSYS6lLiXvCzWzGSKvpK5vdQtCbICHMj+gbAKAOtxiV6HsVh/MBdaF9EQ6faSg==",
"requires": {
"regenerator-runtime": "^0.13.2"
}
},
"@babel/template": {
"version": "7.4.0",
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.4.0.tgz",
@ -3062,6 +3081,11 @@
"regenerate": "^1.4.0"
}
},
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://verdaccio.lossless.one/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
},
"regenerator-transform": {
"version": "0.13.4",
"resolved": "https://verdaccio.lossless.one/regenerator-transform/-/regenerator-transform-0.13.4.tgz",

View File

@ -28,7 +28,9 @@
"@babel/core": "^7.4.4",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/runtime": "^7.4.4",
"@pushrocks/early": "^3.0.3",
"@pushrocks/smartcli": "^3.0.7",
"rollup": "^1.10.1",

View File

@ -44,6 +44,7 @@ const rollupOptions: plugins.rollup.RollupOptions = {
// Resolve source maps to the original source
plugins.rollupSourceMaps(),
plugins.rollupBabel({
runtimeHelpers: true,
extensions: ['.js', '.jsx', '.ts', '.tsx'],
babelrc: false,
presets: [
@ -56,6 +57,14 @@ const rollupOptions: plugins.rollup.RollupOptions = {
}
}
]
],
plugins: [
[
'@babel/plugin-transform-runtime',
{
regenerator: true
}
]
]
})
]