marko-js / webpack

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

feat: switch output from loader to use es modules #26

Closed DylanPiercey closed 4 years ago

DylanPiercey commented 4 years ago

Description

This PR updates the output from this plugin to always include additional dependencies as es modules instead of CommonJS requires. This improves support for components such as

export default class {
  onMount() {
    ...
  }
}

Which currently are not supported.

Checklist: