fix(core): update
This commit is contained in:
@ -25,19 +25,14 @@ export class TsBundle {
|
||||
plugins: [
|
||||
// Compile TypeScript files
|
||||
plugins.rollupTypescript({
|
||||
useTsconfigDeclarationDir: true,
|
||||
tsconfigOverride: {
|
||||
compilerOptions: {
|
||||
declaration: true,
|
||||
emitDecoratorMetadata: true,
|
||||
experimentalDecorators: true,
|
||||
inlineSourceMap: true,
|
||||
noEmitOnError: true,
|
||||
lib: ['esnext', 'dom'],
|
||||
target: 'es2018',
|
||||
noImplicitAny: false
|
||||
}
|
||||
}
|
||||
declaration: false,
|
||||
emitDecoratorMetadata: true,
|
||||
experimentalDecorators: true,
|
||||
inlineSourceMap: true,
|
||||
noEmitOnError: true,
|
||||
lib: ['esnext', 'dom'],
|
||||
noImplicitAny: false,
|
||||
target: 'es2018'
|
||||
}),
|
||||
// Allow node_modules resolution, so you can use 'external' to control
|
||||
// which external modules to include in the bundle
|
||||
|
@ -4,3 +4,4 @@ export const cwd = process.cwd();
|
||||
export const packageDir = plugins.path.join(__dirname, '../');
|
||||
export const htmlDir = plugins.path.join(cwd, './html');
|
||||
export const distWebDir = plugins.path.join(cwd, './dist_web');
|
||||
export const assetsDir = plugins.path.join(packageDir, 'assets');
|
||||
|
@ -14,11 +14,11 @@ export { smartcli, smartfile, smartlog, smartlogDestinationLocal };
|
||||
// third party scope
|
||||
import * as rollup from 'rollup';
|
||||
import rollupBabel from 'rollup-plugin-babel';
|
||||
import rollupCommonjs from 'rollup-plugin-commonjs';
|
||||
import rollupResolve from 'rollup-plugin-node-resolve';
|
||||
import rollupCommonjs from '@rollup/plugin-commonjs';
|
||||
import rollupResolve from '@rollup/plugin-node-resolve';
|
||||
import rollupSourceMaps from 'rollup-plugin-sourcemaps';
|
||||
import { terser as rollupTerser } from 'rollup-plugin-terser';
|
||||
import rollupTypescript from 'rollup-plugin-typescript2';
|
||||
import rollupTypescript from '@rollup/plugin-typescript';
|
||||
|
||||
import * as htmlMinifier from 'html-minifier';
|
||||
|
||||
|
Reference in New Issue
Block a user