File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 33
33
},
34
34
"license" : " BSD-3-Clause" ,
35
35
"dependencies" : {
36
- "@babel/standalone" : " 7.0.0-beta.32" ,
36
+ "@babel/core" : " ^7.0.0-beta.34" ,
37
+ "@babel/preset-env" : " ^7.0.0-beta.34" ,
37
38
"acorn" : " 5.2.1" ,
38
- "babylon" : " 7.0.0-beta.32 " ,
39
+ "babylon" : " 7.0.0-beta.34 " ,
39
40
"benchmark" : " ^2.1.4" ,
40
41
"buble" : " 0.17.3" ,
41
42
"chai" : " 4.1.2" ,
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
- const Babel = require ( "@babel/standalone " ) ;
5
+ const Babel = require ( "@babel/core " ) ;
6
6
const babylon = require ( "babylon" ) ;
7
7
const fs = require ( "fs" ) ;
8
8
9
9
const payloads = [
10
10
{
11
11
name : "vue.runtime.esm-nobuble-2.4.4.js" ,
12
- options : { presets : [ "es2015" ] , sourceType : "module" }
12
+ options : {
13
+ presets : [
14
+ [
15
+ "@babel/preset-env" ,
16
+ {
17
+ targets : {
18
+ browsers : [ "last 2 versions" ] ,
19
+ node : 4 // https://github.com/nodejs/Release#release-schedule
20
+ }
21
+ }
22
+ ]
23
+ ] ,
24
+ sourceType : "module"
25
+ }
13
26
}
14
27
] . map ( ( { name, options } ) => {
15
28
const code = fs . readFileSync ( `third_party/${ name } ` , "utf8" ) ;
You can’t perform that action at this time.
0 commit comments