Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

compile the bundled code to es5 to work in IE11 #912

Closed
wants to merge 1 commit into from

Conversation

JakeChampion
Copy link
Contributor

No description provided.

@JakeChampion JakeChampion requested a review from a team as a code owner September 23, 2020 15:03
@@ -41,6 +41,7 @@ module.exports.getBaseKarmaConfig = function (opts = { ignoreBower: false }) {

// list of files / patterns to load in the browser
files: [
require.resolve('@babel/polyfill/dist/polyfill.js'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably shouldn't include this in our tests as then our tests won't catch when we have forgotten to define a required polyfill in origami.json -- I think those polyfills are included?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to in order to get async functions working which seem to require the regenerator runtime. I couldn't get it to work any other way.

@JakeChampion
Copy link
Contributor Author

Closing in favour of using swc instead of babel -- #913

@JakeChampion JakeChampion deleted the compile-to-es5 branch September 24, 2020 11:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants