Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. const babelPresetFlowVue = {
  2. plugins: [
  3. require('@babel/plugin-proposal-class-properties'),
  4. // require('@babel/plugin-syntax-flow'), // not needed, included in transform-flow-strip-types
  5. require('@babel/plugin-transform-flow-strip-types')
  6. ]
  7. }
  8.  
  9. module.exports = {
  10. plugins: [
  11. "@babel/plugin-proposal-class-properties",
  12. "babel-plugin-transform-vue-jsx",
  13. "@babel/plugin-syntax-dynamic-import",
  14. [
  15. "module-resolver",
  16. {
  17. root: ["./src/"],
  18. alias: {
  19. // core: './core',
  20. // shared: 'shared',
  21. web: './src/platforms/web',
  22. weex: './src/platforms/weex/',
  23. }
  24. },
  25. ]
  26. ],
  27. presets: [
  28. babelPresetFlowVue,
  29. [
  30. "@babel/preset-env",
  31. {
  32. targets: {
  33. node: "current"
  34. }
  35. }
  36. ]
  37. ],
  38. retainLines: true
  39. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement