mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-12-13 00:48:58 +08:00
fix(jsx-explorer): support browser env
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
compilerOptions,
|
||||
initOptions,
|
||||
} from './options';
|
||||
import './editor.worker';
|
||||
import './index.css';
|
||||
|
||||
main();
|
||||
@@ -100,6 +101,7 @@ const App = defineComponent((props) => <div>Hello World</div>)`,
|
||||
console.log('AST', res.ast!);
|
||||
output.setValue(res.code!);
|
||||
} else {
|
||||
console.error(err);
|
||||
output.setValue(err.message!);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user