learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
813 stars 685 forks source link

Enable webpack code splitting with `import()` #2021

Closed rtibbles closed 5 years ago

rtibbles commented 7 years ago

Summary

We use buble to do our code transpilation, in both good and bad ways it adheres very closely to ES2015 specifications, and throws errors if we try to use import (an ES2015 reserved word) in the way that Webpack needs.

This is not a huge deal, as we can still use the Webpack require.ensure code splitting, but it would be nice to have to make our asynchronous code splitting natively Promise driven.

There are two possible solutions:

rtibbles commented 5 years ago

This has been addressed by updating buble.