Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const babelPresetFlowVue = {
- plugins: [
- require('@babel/plugin-proposal-class-properties'),
- // require('@babel/plugin-syntax-flow'), // not needed, included in transform-flow-strip-types
- require('@babel/plugin-transform-flow-strip-types')
- ]
- }
- module.exports = {
- plugins: [
- "@babel/plugin-proposal-class-properties",
- "babel-plugin-transform-vue-jsx",
- "@babel/plugin-syntax-dynamic-import",
- [
- "module-resolver",
- {
- root: ["./src/"],
- alias: {
- // core: './core',
- // shared: 'shared',
- web: './src/platforms/web',
- weex: './src/platforms/weex/',
- }
- },
- ]
- ],
- presets: [
- babelPresetFlowVue,
- [
- "@babel/preset-env",
- {
- targets: {
- node: "current"
- }
- }
- ]
- ],
- retainLines: true
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement