mirror of https://github.com/lukechilds/rollup.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
345 B
13 lines
345 B
import { readFileSync } from 'fs';
|
|
import config from './rollup.config.js';
|
|
|
|
config.plugins.push({
|
|
load: function ( id ) {
|
|
if ( ~id.indexOf( 'fs.js' ) ) return readFileSync( 'browser/fs.js', 'utf-8' );
|
|
if ( ~id.indexOf( 'path.js' ) ) return readFileSync( 'browser/path.js', 'utf-8' );
|
|
}
|
|
});
|
|
|
|
config.format = 'umd';
|
|
|
|
export default config;
|
|
|