Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
feat(jsx): use babel-preset-jsx
Browse files Browse the repository at this point in the history
fix #17
  • Loading branch information
underfin committed Jan 11, 2021
1 parent 10627ae commit 05248ff
Show file tree
Hide file tree
Showing 3 changed files with 2,020 additions and 2,068 deletions.
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -42,11 +42,10 @@
"dependencies": {
"@babel/core": "^7.11.6",
"@rollup/pluginutils": "^4.1.0",
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
"@vue/babel-preset-jsx": "^1.2.4",
"@vue/compiler-sfc": "^3.0.0-rc.5",
"@vue/component-compiler-utils": "^3.2.0",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"babel-preset-env": "^1.7.0",
"chalk": "^4.1.0",
"debug": "^4.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/jsxTransform.ts
Expand Up @@ -3,7 +3,7 @@ import { transform } from '@babel/core'
// todo hmr
export function transformVueJsx(code: string, filename: string) {
const result = transform(code, {
plugins: ['transform-vue-jsx'],
presets: ['@vue/babel-preset-jsx'],
filename,
sourceMaps: true,
})!
Expand Down

0 comments on commit 05248ff

Please sign in to comment.