Skip to content

Latest commit

 

History

History

nomodule-plugin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@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);
}