Skip to content

Transplilation for IE11 #8024

@ellioseven

Description

@ellioseven

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions