marko-js / webpack

A loader for marko files and a plugin for universal bundling
MIT License
13 stars 4 forks source link

fix: use cjs for Marko 4 and esm for 5 #28

Closed DylanPiercey closed 4 years ago

DylanPiercey commented 4 years ago

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: