Ensure const-check plugin order (#257)
This commit is contained in:
parent
5b64743864
commit
3c8eeec515
@ -1,5 +1,10 @@
|
||||
module.exports = {
|
||||
// es2015
|
||||
"check-es2015-constants": {
|
||||
features: [
|
||||
"const",
|
||||
],
|
||||
},
|
||||
"transform-es2015-arrow-functions": {
|
||||
features: [
|
||||
"arrow functions",
|
||||
@ -27,11 +32,6 @@ module.exports = {
|
||||
"object literal extensions / computed properties",
|
||||
],
|
||||
},
|
||||
"check-es2015-constants": {
|
||||
features: [
|
||||
"const",
|
||||
],
|
||||
},
|
||||
"transform-es2015-destructuring": {
|
||||
features: [
|
||||
"destructuring, assignment",
|
||||
|
||||
@ -1,4 +1,14 @@
|
||||
{
|
||||
"check-es2015-constants": {
|
||||
"chrome": 49,
|
||||
"edge": 14,
|
||||
"firefox": 51,
|
||||
"safari": 10,
|
||||
"node": 6,
|
||||
"ios": 10,
|
||||
"opera": 36,
|
||||
"electron": 1
|
||||
},
|
||||
"transform-es2015-arrow-functions": {
|
||||
"chrome": 47,
|
||||
"edge": 13,
|
||||
@ -50,16 +60,6 @@
|
||||
"opera": 31,
|
||||
"electron": 0.31
|
||||
},
|
||||
"check-es2015-constants": {
|
||||
"chrome": 49,
|
||||
"edge": 14,
|
||||
"firefox": 51,
|
||||
"safari": 10,
|
||||
"node": 6,
|
||||
"ios": 10,
|
||||
"opera": 36,
|
||||
"electron": 1
|
||||
},
|
||||
"transform-es2015-destructuring": {
|
||||
"chrome": 51,
|
||||
"edge": 15,
|
||||
|
||||
@ -9,12 +9,12 @@ Using targets:
|
||||
Modules transform: false
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants {"uglify":true}
|
||||
transform-es2015-arrow-functions {"uglify":true}
|
||||
transform-es2015-block-scoped-functions {"uglify":true}
|
||||
transform-es2015-block-scoping {"uglify":true}
|
||||
transform-es2015-classes {"uglify":true}
|
||||
transform-es2015-computed-properties {"uglify":true}
|
||||
check-es2015-constants {"uglify":true}
|
||||
transform-es2015-destructuring {"uglify":true}
|
||||
transform-es2015-duplicate-keys {"uglify":true}
|
||||
transform-es2015-for-of {"uglify":true}
|
||||
@ -39,4 +39,4 @@ Using polyfills:
|
||||
web.timers {"chrome":55}
|
||||
web.immediate {"chrome":55}
|
||||
web.dom.iterable {"chrome":55}
|
||||
src/in.js -> lib/in.js
|
||||
src/in.js -> lib/in.js
|
||||
@ -10,12 +10,12 @@ Using targets:
|
||||
Modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants {"ie":10}
|
||||
transform-es2015-arrow-functions {"ie":10}
|
||||
transform-es2015-block-scoped-functions {"ie":10}
|
||||
transform-es2015-block-scoping {"ie":10}
|
||||
transform-es2015-classes {"ie":10}
|
||||
transform-es2015-computed-properties {"ie":10}
|
||||
check-es2015-constants {"ie":10}
|
||||
transform-es2015-destructuring {"ie":10,"node":6}
|
||||
transform-es2015-duplicate-keys {"ie":10}
|
||||
transform-es2015-for-of {"ie":10,"node":6}
|
||||
@ -120,4 +120,4 @@ Using polyfills:
|
||||
web.timers {"chrome":54,"ie":10,"node":6}
|
||||
web.immediate {"chrome":54,"ie":10,"node":6}
|
||||
web.dom.iterable {"chrome":54,"ie":10,"node":6}
|
||||
src/in.js -> lib/in.js
|
||||
src/in.js -> lib/in.js
|
||||
@ -8,8 +8,8 @@ Using targets:
|
||||
Modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
transform-es2015-block-scoping {"electron":0.36}
|
||||
check-es2015-constants {"electron":0.36}
|
||||
transform-es2015-block-scoping {"electron":0.36}
|
||||
transform-es2015-destructuring {"electron":0.36}
|
||||
transform-es2015-for-of {"electron":0.36}
|
||||
transform-es2015-function-name {"electron":0.36}
|
||||
@ -66,4 +66,4 @@ Using polyfills:
|
||||
web.timers {"electron":0.36}
|
||||
web.immediate {"electron":0.36}
|
||||
web.dom.iterable {"electron":0.36}
|
||||
src/in.js -> lib/in.js
|
||||
src/in.js -> lib/in.js
|
||||
@ -13,12 +13,12 @@ Using targets:
|
||||
Modules transform: commonjs
|
||||
|
||||
Using plugins:
|
||||
check-es2015-constants {"edge":13,"firefox":49,"ie":10,"ios":9,"safari":7}
|
||||
transform-es2015-arrow-functions {"ie":10,"ios":9,"safari":7}
|
||||
transform-es2015-block-scoped-functions {"ie":10,"ios":9,"safari":7}
|
||||
transform-es2015-block-scoping {"edge":13,"firefox":49,"ie":10,"ios":9,"safari":7}
|
||||
transform-es2015-classes {"ie":10,"ios":9,"safari":7}
|
||||
transform-es2015-computed-properties {"ie":10,"safari":7}
|
||||
check-es2015-constants {"edge":13,"firefox":49,"ie":10,"ios":9,"safari":7}
|
||||
transform-es2015-destructuring {"edge":13,"firefox":49,"ie":10,"ios":9,"safari":7}
|
||||
transform-es2015-duplicate-keys {"ie":10,"safari":7}
|
||||
transform-es2015-for-of {"edge":13,"firefox":49,"ie":10,"ios":9,"safari":7}
|
||||
|
||||
2
experimental/babel-preset-env/test/fixtures/sanity/check-es2015-constants/exec.js
vendored
Normal file
2
experimental/babel-preset-env/test/fixtures/sanity/check-es2015-constants/exec.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
const one = 123;
|
||||
one = 432;
|
||||
6
experimental/babel-preset-env/test/fixtures/sanity/check-es2015-constants/options.json
vendored
Normal file
6
experimental/babel-preset-env/test/fixtures/sanity/check-es2015-constants/options.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"presets": [
|
||||
["../../../../lib"]
|
||||
],
|
||||
"throws": "\"one\" is read-only"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user