Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -3,7 +3,9 @@ | |||
"chrome": "41", | ||||
"edge": "13", | ||||
"firefox": "34", | ||||
"safari": "13", | ||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
joshgoebel
|
"transform-template-literals": { |
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
JLHwung
Nov 6, 2020
Contributor
When bugfixes: true
is provided, preset-env will use the plugin-bugfixes.json
to determine whether any plugin should be applied. It will be the new default for Babel 8.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
joshgoebel
Nov 6, 2020
So does that make plugins
deprecated then? If these values are simply incorrect should they not still be patched?
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
nicolo-ribaudo
Nov 6, 2020
Member
Those values are not incorrect: when you are not using bugfixes
, we need to transpile template literals on Safari 9 because they are not fully supported.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
joshgoebel
Nov 6, 2020
My original question was about Safari 12, not Safari 9. I see that Safari 9's support is qualified. To the best of my knowledge Safari 12 (or 12.1's) support should not be.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
nicolo-ribaudo
Nov 6, 2020
Member
Safari 12 and 12.1 do not fully support template literals.
You can see it at https://kangax.github.io/compat-table/es6/, enabling "Show obsolete platforms" (top left) and expanding the "template literals" section.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
nicolo-ribaudo
Nov 6, 2020
Member
i.e. This doesn't return true
on Safari 12:
function strings(array) {
return array;
}
function getStrings() {
return strings`foo`;
}
var original = getStrings();
var newed = new getStrings();
return original === getStrings() && original === newed;
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
Doesn't Safari 12 support template literals just fine? https://caniuse.com/?search=template%20literal