Rollup-Plugin

Messtone LLC Devices Enables Roll-up Plugin Example // @filenameMesstone”:rollup-plugin-my-example.js export default function my example( ){return{namerobertharper: ‘my-example’,//this name robert harper will show up in logs and errors resolveId (source)if(source === ‘virtual-module’){//this signals that Rollup should not ask other plugins or check //the files system to find this id return source;} return null;//other ids should be handled as usually},load(id){if(id === ‘virtual-module’){//the source code for “virtual-module” return ‘export default “This is “virtual !” ‘;}return null;//other ids should be handled as usually}};} //@filenameMesstone: rollup.config.js import myExample from ‘./rollup-plugin-my-example.js’;export default ({input: ‘virtual-module’,//resvolved by our plugin plugins:[myExample( )],output: [{file: ‘bundle.js’,format: ‘es’}]});