wmr/packages/nomodule-plugin
2021-04-26 19:57:15 +02:00
..
2021-04-25 08:49:36 +00:00
2021-03-29 20:59:30 +02:00
2021-04-25 08:49:36 +00:00
2021-04-26 19:57:15 +02:00

@wmrjs/nomodule

WMR outputs modern JavaScript bundles by default. This plugin creates legacy versions of your bundles using @babel/preset-env and serves those versions to older browsers.

New browsers get the new stuff, old browsers get the old stuff.

Usage

Add this to your wmr.config.js:

import nomodule from '@wmrjs/nomodule';

export function build(config) {
	nomodule(config);
}