diff --git a/babel.config.js b/babel.config.js index fb10d30..e11ed42 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,15 +1,28 @@ +const path = require('path') + module.exports = { presets: [ - ["@babel/preset-env", { + ['@babel/preset-env', { useBuiltIns: 'usage', corejs: 3, targets: { ie: 9 } - }] + }], + '@babel/preset-typescript', ], plugins: [ - "dynamic-import-node" + 'dynamic-import-node', + ['global-define', { + '__DEV__': 'true' + }], + ['module-resolver', { + root: '.', + extensions: ['.ts'], + alias: { + 'vue-meta': path.resolve('./src/') + } + }], ], env: { test: { diff --git a/examples/_static/index.html b/examples/_static/index.html index 6624075..c9c923a 100644 --- a/examples/_static/index.html +++ b/examples/_static/index.html @@ -10,8 +10,8 @@ +
  • Usage with multiple apps
  • +
  • SSR
  • Usage with vue-router