-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check browserslist prop in package.json for environments (#1053)
- Loading branch information
1 parent
12b649b
commit 39e4f7a
Showing
8 changed files
with
93 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/integration/babel-browserslist-multiple-env-as-string/.eslintrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../.eslintrc.json", | ||
"parserOptions": { | ||
"sourceType": "script" | ||
}, | ||
"rules": { | ||
"no-unused-vars": "off" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/integration/babel-browserslist-multiple-env-as-string/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const a = { | ||
prop1: '1', | ||
prop2: '2', | ||
prop3: '3' | ||
}; | ||
|
||
const {prop1, prop2, prop3} = a; |
7 changes: 7 additions & 0 deletions
7
test/integration/babel-browserslist-multiple-env-as-string/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "parcel-test-browser-browserslist", | ||
"browserslist": { | ||
"test": "chrome 68", | ||
"production": "last 2 Chrome versions, IE >= 11" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/integration/babel-browserslist-multiple-env/.eslintrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../.eslintrc.json", | ||
"parserOptions": { | ||
"sourceType": "script" | ||
}, | ||
"rules": { | ||
"no-unused-vars": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const a = { | ||
prop1: '1', | ||
prop2: '2', | ||
prop3: '3' | ||
}; | ||
|
||
const {prop1, prop2, prop3} = a; |
7 changes: 7 additions & 0 deletions
7
test/integration/babel-browserslist-multiple-env/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "parcel-test-browser-browserslist", | ||
"browserslist": { | ||
"test": ["chrome 68"], | ||
"production": ["last 2 Chrome versions", "IE >= 11"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters