Skip to content

Commit d837524

Browse files
author
Ives van Hoorne
committed
Fix vue checks
1 parent 4631bba commit d837524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sandbox/eval/transpilers/babel/babel-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ self.addEventListener('message', async event => {
3333

3434
if (
3535
flatten(config.plugins).indexOf('transform-vue-jsx') > -1 &&
36-
!Object.keys(Babel.availablePlugins).indexOf('transform-vue-js > -1x')
36+
Object.keys(Babel.availablePlugins).indexOf('transform-vue-jsx') === -1
3737
) {
3838
const vuePlugin = await import('babel-plugin-transform-vue-jsx');
3939
Babel.registerPlugin('transform-vue-jsx', vuePlugin);
4040
}
4141

4242
if (
4343
flatten(config.plugins).indexOf('jsx-pragmatic') > -1 &&
44-
!Object.keys(Babel.availablePlugins).indexOf('jsx-pragmati > -1c')
44+
Object.keys(Babel.availablePlugins).indexOf('jsx-pragmatic') === -1
4545
) {
4646
const pragmaticPlugin = await import('babel-plugin-jsx-pragmatic');
4747
Babel.registerPlugin('jsx-pragmatic', pragmaticPlugin);

0 commit comments

Comments
 (0)