This repository has been archived by the owner on May 11, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate default builtins for platforms (#226)
- Loading branch information
1 parent
a4d585c
commit 48a329b
Showing
9 changed files
with
52 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default [ | ||
export const defaultWebIncludes = [ | ||
"web.timers", | ||
"web.immediate", | ||
"web.dom.iterable" | ||
|
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
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
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 @@ | ||
import "babel-polyfill"; |
7 changes: 7 additions & 0 deletions
7
test/fixtures/preset-options/use-builtins-node-web/expected.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 @@ | ||
import "core-js/modules/es7.string.pad-start"; | ||
import "core-js/modules/es7.string.pad-end"; | ||
import "core-js/modules/web.timers"; | ||
import "core-js/modules/web.immediate"; | ||
import "core-js/modules/web.dom.iterable"; | ||
import "regenerator-runtime/runtime"; | ||
|
13 changes: 13 additions & 0 deletions
13
test/fixtures/preset-options/use-builtins-node-web/options.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,13 @@ | ||
{ | ||
"presets": [ | ||
["../../../../lib", { | ||
"targets": { | ||
"chrome": 55, | ||
"node": 7.6, | ||
"uglify": true | ||
}, | ||
"modules": false, | ||
"useBuiltIns": true | ||
}] | ||
] | ||
} |
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 @@ | ||
import "babel-polyfill"; |
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,4 @@ | ||
import "core-js/modules/es7.string.pad-start"; | ||
import "core-js/modules/es7.string.pad-end"; | ||
import "regenerator-runtime/runtime"; | ||
|
12 changes: 12 additions & 0 deletions
12
test/fixtures/preset-options/use-builtins-node/options.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,12 @@ | ||
{ | ||
"presets": [ | ||
["../../../../lib", { | ||
"targets": { | ||
"node": 7.6, | ||
"uglify": true | ||
}, | ||
"modules": false, | ||
"useBuiltIns": true | ||
}] | ||
] | ||
} |