File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/sandbox/eval/transpilers/babel Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments