fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-25 21:07:40 +00:00
parent a935dc0b86
commit 104cdab0dc
4 changed files with 12 additions and 0 deletions

8
package-lock.json generated
View File

@ -1448,6 +1448,14 @@
"resolve": "^1.11.0" "resolve": "^1.11.0"
} }
}, },
"@rollup/plugin-json": {
"version": "4.0.3",
"resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-json/-/plugin-json-4.0.3.tgz",
"integrity": "sha512-QMUT0HZNf4CX17LMdwaslzlYHUKTYGuuk34yYIgZrNdu+pMEfqMS55gck7HEeHBKXHM4cz5Dg1OVwythDdbbuQ==",
"requires": {
"@rollup/pluginutils": "^3.0.8"
}
},
"@rollup/plugin-node-resolve": { "@rollup/plugin-node-resolve": {
"version": "8.0.0", "version": "8.0.0",
"resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-node-resolve/-/plugin-node-resolve-8.0.0.tgz", "resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-node-resolve/-/plugin-node-resolve-8.0.0.tgz",

View File

@ -36,6 +36,7 @@
"@pushrocks/smartlog": "^2.0.21", "@pushrocks/smartlog": "^2.0.21",
"@pushrocks/smartlog-destination-local": "^8.0.2", "@pushrocks/smartlog-destination-local": "^8.0.2",
"@rollup/plugin-commonjs": "^12.0.0", "@rollup/plugin-commonjs": "^12.0.0",
"@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^8.0.0", "@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-typescript": "^4.1.2", "@rollup/plugin-typescript": "^4.1.2",
"@types/html-minifier": "^3.5.3", "@types/html-minifier": "^3.5.3",

View File

@ -39,6 +39,7 @@ export class TsBundle {
target: 'es2018', target: 'es2018',
allowSyntheticDefaultImports: true allowSyntheticDefaultImports: true
}), }),
plugins.rollupJson(),
// Allow node_modules resolution, so you can use 'external' to control // Allow node_modules resolution, so you can use 'external' to control
// which external modules to include in the bundle // which external modules to include in the bundle
// https://github.com/rollup/rollup-plugin-node-resolve#usage // https://github.com/rollup/rollup-plugin-node-resolve#usage

View File

@ -15,6 +15,7 @@ export { smartcli, smartfile, smartlog, smartlogDestinationLocal };
import * as rollup from 'rollup'; import * as rollup from 'rollup';
import rollupBabel from 'rollup-plugin-babel'; import rollupBabel from 'rollup-plugin-babel';
import rollupCommonjs from '@rollup/plugin-commonjs'; import rollupCommonjs from '@rollup/plugin-commonjs';
import rollupJson from '@rollup/plugin-json';
import rollupResolve from '@rollup/plugin-node-resolve'; import rollupResolve from '@rollup/plugin-node-resolve';
import rollupSourceMaps from 'rollup-plugin-sourcemaps'; import rollupSourceMaps from 'rollup-plugin-sourcemaps';
import { terser as rollupTerser } from 'rollup-plugin-terser'; import { terser as rollupTerser } from 'rollup-plugin-terser';
@ -26,6 +27,7 @@ export {
rollup, rollup,
rollupBabel, rollupBabel,
rollupCommonjs, rollupCommonjs,
rollupJson,
rollupResolve, rollupResolve,
rollupSourceMaps, rollupSourceMaps,
rollupTerser, rollupTerser,