diff --git a/.changeset/lazy-fireants-think.md b/.changeset/lazy-fireants-think.md new file mode 100644 index 000000000..b68f4fe1f --- /dev/null +++ b/.changeset/lazy-fireants-think.md @@ -0,0 +1,5 @@ +--- +'preact-cli': minor +--- + +Removes Safari nomodule polyfill from template diff --git a/packages/cli/lib/resources/body-end.ejs b/packages/cli/lib/resources/body-end.ejs index 7e588109a..902141242 100644 --- a/packages/cli/lib/resources/body-end.ejs +++ b/packages/cli/lib/resources/body-end.ejs @@ -5,8 +5,6 @@ <% } %> <% if (webpack.assets.filter(entry => entry.name.match(/bundle(\.\w{5})?.esm.js$/)).length > 0) { %> - <% /* Fix for safari < 11 nomodule bug. TODO: Do the following only for safari. */ %> - <% /*Fetch and Promise polyfills are not needed for browsers that support type=module