Skip to content

v1.2.1

Compare
Choose a tag to compare
@haoqunjiang haoqunjiang released this 16 Oct 13:12
· 31 commits to dev since this release

New Features

Added @vue/composition-api support, thanks to @luwanquan and @antfu.

To enable this feature, turn on the compositionAPI flag in @vue/babel-preset-jsx:

// babel.config.js
module.exports = {
  presets: [
    [
      "@vue/babel-preset-jsx",
      {
        compositionAPI: true,
      },
    ],
  ],
};

If you are using the preset provided by Vue CLI, the flag is a subfield of the jsx option:

// babel.config.js
module.exports = {
  presets: [
    [
      "@vue/cli-plugin-babel/preset",
      {
        jsx: {
          compositionAPI: true,
        },
      },
    ],
  ],
};