File tree Expand file tree Collapse file tree 6 files changed +292
-146
lines changed Expand file tree Collapse file tree 6 files changed +292
-146
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "presets" : [
3
+ [
4
+ " @babel/env" ,
5
+ {
6
+ "useBuiltIns" : " entry" ,
7
+ "corejs" : 3
8
+ }
9
+ ],
10
+ " babel-preset-typescript-vue"
11
+ ],
12
+ "plugins" : [
13
+ [
14
+ " @babel/plugin-proposal-decorators" ,
15
+ {
16
+ "legacy" : true
17
+ }
18
+ ],
19
+ [
20
+ " @babel/proposal-class-properties" ,
21
+ {
22
+ "loose" : true
23
+ }
24
+ ]
25
+ ]
26
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import TestContainer from './TestContainer .vue' ;
1
+ import Test from './Test .vue' ;
2
2
import Vue from 'vue' ;
3
3
4
4
new Vue ( {
5
- render : ( h ) => h ( TestContainer )
5
+ render : ( h ) => h ( Test )
6
6
} ) . $mount ( '#vue' ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"devDependencies" : {
3
- "@symfony/webpack-encore" : " ^0.28.2" ,
3
+ "@babel/core" : " ^7.11.0" ,
4
+ "@babel/plugin-proposal-decorators" : " ^7.10.5" ,
5
+ "@babel/preset-env" : " ^7.11.0" ,
6
+ "@symfony/webpack-encore" : " ^0.30.0" ,
4
7
"@types/webpack-env" : " ^1.15.1" ,
8
+ "babel-loader" : " ^8.0.6" ,
9
+ "babel-preset-typescript-vue" : " ^1.1.1" ,
5
10
"core-js" : " ^3.0.0" ,
6
11
"regenerator-runtime" : " ^0.13.2" ,
7
12
"ts-loader" : " ^5.3.0" ,
Original file line number Diff line number Diff line change @@ -48,16 +48,13 @@ Encore
48
48
. enableVersioning ( Encore . isProduction ( ) )
49
49
50
50
// enables @babel /preset-env polyfills
51
- . configureBabelPresetEnv ( ( config ) => {
52
- config . useBuiltIns = 'usage' ;
53
- config . corejs = 3 ;
54
- } )
51
+ . configureBabel ( null )
55
52
56
53
// enables Sass/SCSS support
57
54
//.enableSassLoader()
58
55
59
56
// uncomment if you use TypeScript
60
- . enableTypeScriptLoader ( )
57
+ . enableBabelTypeScriptPreset ( )
61
58
62
59
. enableVueLoader ( )
63
60
You can’t perform that action at this time.
0 commit comments