marko-js / webpack

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

feat: remove virtual module plugin, much refactoring, webpack 5 support #48

Closed DylanPiercey closed 3 years ago

DylanPiercey commented 3 years ago

BREAKING CHANGE: drops support for Marko 4 compilation

Description

This PR replaces https://github.com/marko-js/webpack/pull/42. It adds support for webpack 5, while maintaining webpack 4 support. Marko 4 support has been dropped.

This PR is a fairly large refactor to simplify the logic and also to remove the usage of the virtual modules plugin which prevented us from supporting webpack 5.

Checklist:

DylanPiercey commented 3 years ago

This PR is not quite merge ready. Although the tests are passing and it is possible everything works, more testing is needed.

If anyone would like to help with that effort I've released a pre-release (@marko/webpack@7.0.0-3).