https://github.com/marko-js/webpack/issues/26 switched the loader to inlining additional assets using esmodules. This is needed to support the Marko 5 compiler, however causes issues when using the Marko 4 compiler. This PR updates the loader to output commonjs for Marko 4 and esmodules for Marko 5.
fixes #27
Checklist:
[ ] I have updated/added documentation affected by my changes.
Description
https://github.com/marko-js/webpack/issues/26 switched the loader to inlining additional assets using esmodules. This is needed to support the Marko 5 compiler, however causes issues when using the Marko 4 compiler. This PR updates the loader to output commonjs for Marko 4 and esmodules for Marko 5.
fixes #27
Checklist: