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

Commit

Permalink
fix: add filename option for compile jsx
Browse files Browse the repository at this point in the history
close #58
  • Loading branch information
underfin committed Apr 3, 2021
1 parent 9bd2dfe commit f8cd9c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsxTransform.ts
Expand Up @@ -17,6 +17,7 @@ export function transformVueJsx(
const result = transform(code, {
presets: [[require.resolve('@vue/babel-preset-jsx'), jsxOptions]],
sourceFileName: id,
filename: id,
sourceMaps: true,
plugins,
babelrc: false,
Expand Down

0 comments on commit f8cd9c4

Please sign in to comment.