fix(core): update
This commit is contained in:
parent
053ef1f770
commit
0adb181bbf
@ -11,8 +11,10 @@ const pkg = require('./package.json');
|
|||||||
export default {
|
export default {
|
||||||
input: `ts_web/index.ts`,
|
input: `ts_web/index.ts`,
|
||||||
output: {
|
output: {
|
||||||
|
name: 'tsbundle',
|
||||||
|
// file: 'dist_web/bundle.js',
|
||||||
file: 'dist_web/bundle.js',
|
file: 'dist_web/bundle.js',
|
||||||
format: 'es',
|
format: 'iife',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
|
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
|
||||||
@ -49,6 +51,10 @@ export default {
|
|||||||
|
|
||||||
// Resolve source maps to the original source
|
// Resolve source maps to the original source
|
||||||
sourceMaps(),
|
sourceMaps(),
|
||||||
babel()
|
babel({
|
||||||
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||||
|
babelrc: false,
|
||||||
|
presets: [["@babel/es2015", { modules: false }]]
|
||||||
|
})
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user