File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -760,6 +760,11 @@ class WebpackConfig {
760
760
761
761
this . vueOptions [ key ] = vueOptions [ key ] ;
762
762
}
763
+
764
+ // useJsx and vue 3 are not currently supported by Encore
765
+ if ( this . vueOptions . useJsx && this . vueOptions . version === 3 ) {
766
+ throw new Error ( 'Setting both "useJsx: true" and "version: 3" for enableVueLoader() is not currently supported. Please use version: 2 or disable useJsx.' ) ;
767
+ }
763
768
}
764
769
765
770
enableEslintLoader ( eslintLoaderOptionsOrCallback = ( ) => { } , eslintOptions = { } ) {
Original file line number Diff line number Diff line change @@ -1834,7 +1834,7 @@ module.exports = {
1834
1834
} , true ) ;
1835
1835
} ) ;
1836
1836
1837
- it ( 'Vue.js is compiled correctly with JSX support' , ( done ) => {
1837
+ it ( 'Vue.js is compiled correctly with JSX support' , function ( done ) {
1838
1838
const appDir = testSetup . createTestAppDir ( ) ;
1839
1839
1840
1840
fs . writeFileSync (
@@ -1848,6 +1848,14 @@ module.exports = {
1848
1848
) ;
1849
1849
1850
1850
const config = testSetup . createWebpackConfig ( appDir , 'www/build' , 'dev' ) ;
1851
+
1852
+ if ( getVueVersion ( config ) === 3 ) {
1853
+ // not supported for vue3 at this time
1854
+ this . skip ( ) ;
1855
+
1856
+ return ;
1857
+ }
1858
+
1851
1859
config . enableSingleRuntimeChunk ( ) ;
1852
1860
config . setPublicPath ( '/build' ) ;
1853
1861
config . addEntry ( 'main' , `./vuejs-jsx/main_v${ getVueVersion ( config ) } ` ) ;
You can’t perform that action at this time.
0 commit comments