-
Notifications
You must be signed in to change notification settings - Fork 30.6k
Closed
Milestone
Description
Bug report
Describe the bug
I am getting multiple transpilation errors on IE11. Eg:
Invalid syntax:
next-server@9.0.2/dist/lib/amp.js:
function isInAmpMode({ ampFirst = false, hybrid = false, hasQuery = false, } = {}) {
next-server@9.0.2/dist/lib/dynamic.js:
return () => (react_1.default.createElement(Loading, { error: null, isLoading: true, pastDelay: false, timedOut: false }));
From the docs:
Next.js supports IE11 and all modern browsers out of the box
I'm not exactly sure why the above is not transpiled into IE11 friendly code?
To Reproduce
You can see the transpiled code:
https://unpkg.com/next-server@9.0.2/dist/lib/dynamic.js
https://unpkg.com/next-server@9.0.2/dist/lib/amp.js
Expected behavior
Compiled code in dist is IE11 compatible.
Reactions are currently unavailable