-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[es-shims] Add support for the
String.prototype
Annex B methods (#103)
- Loading branch information
1 parent
a8e0ddc
commit fa4f9f3
Showing
22 changed files
with
473 additions
and
21 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
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
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
13 changes: 13 additions & 0 deletions
13
.../babel-plugin-polyfill-es-shims/test/fixtures/usage-global/annex-b-string-ie-11/input.mjs
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 @@ | ||
str.anchor(); | ||
str.big(); | ||
str.blink(); | ||
str.bold(); | ||
str.fixed(); | ||
str.fontcolor(); | ||
str.fontsize(); | ||
str.italics(); | ||
str.link(); | ||
str.small(); | ||
str.strike(); | ||
str.sub(); | ||
str.sup(); |
16 changes: 16 additions & 0 deletions
16
...bel-plugin-polyfill-es-shims/test/fixtures/usage-global/annex-b-string-ie-11/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,16 @@ | ||
{ | ||
"validateLogs": true, | ||
"targets": { "ie": "11" }, | ||
"plugins": [ | ||
[ | ||
"@@/polyfill-es-shims", | ||
{ | ||
"method": "usage-global", | ||
"missingDependencies": { | ||
"log": "per-file", | ||
"all": true | ||
} | ||
} | ||
] | ||
] | ||
} |
26 changes: 26 additions & 0 deletions
26
...babel-plugin-polyfill-es-shims/test/fixtures/usage-global/annex-b-string-ie-11/output.mjs
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,26 @@ | ||
import "es-string-html-methods/anchor/auto"; | ||
import "es-string-html-methods/big/auto"; | ||
import "es-string-html-methods/blink/auto"; | ||
import "es-string-html-methods/bold/auto"; | ||
import "es-string-html-methods/fixed/auto"; | ||
import "es-string-html-methods/fontcolor/auto"; | ||
import "es-string-html-methods/fontsize/auto"; | ||
import "es-string-html-methods/italics/auto"; | ||
import "es-string-html-methods/link/auto"; | ||
import "es-string-html-methods/small/auto"; | ||
import "es-string-html-methods/strike/auto"; | ||
import "es-string-html-methods/sub/auto"; | ||
import "es-string-html-methods/sup/auto"; | ||
str.anchor(); | ||
str.big(); | ||
str.blink(); | ||
str.bold(); | ||
str.fixed(); | ||
str.fontcolor(); | ||
str.fontsize(); | ||
str.italics(); | ||
str.link(); | ||
str.small(); | ||
str.strike(); | ||
str.sub(); | ||
str.sup(); |
4 changes: 4 additions & 0 deletions
4
...babel-plugin-polyfill-es-shims/test/fixtures/usage-global/annex-b-string-ie-11/stderr.txt
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 @@ | ||
Some polyfills have been added but are not present in your dependencies. | ||
Please run one of the following commands: | ||
npm install --save es-string-html-methods@^1.0.0 | ||
yarn add es-string-html-methods@^1.0.0 |
13 changes: 13 additions & 0 deletions
13
packages/babel-plugin-polyfill-es-shims/test/fixtures/usage-global/annex-b-string/input.mjs
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 @@ | ||
str.anchor(); | ||
str.big(); | ||
str.blink(); | ||
str.bold(); | ||
str.fixed(); | ||
str.fontcolor(); | ||
str.fontsize(); | ||
str.italics(); | ||
str.link(); | ||
str.small(); | ||
str.strike(); | ||
str.sub(); | ||
str.sup(); |
15 changes: 15 additions & 0 deletions
15
...ges/babel-plugin-polyfill-es-shims/test/fixtures/usage-global/annex-b-string/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,15 @@ | ||
{ | ||
"validateLogs": true, | ||
"plugins": [ | ||
[ | ||
"@@/polyfill-es-shims", | ||
{ | ||
"method": "usage-global", | ||
"missingDependencies": { | ||
"log": "per-file", | ||
"all": true | ||
} | ||
} | ||
] | ||
] | ||
} |
Oops, something went wrong.