3 ms·
They keep a lot of things in query params: http://rollupjs.org/#{"options": {"format":"es6","moduleName":"myBundle","globals":{}},"modules": [{"nam
by hliyan 11y ago
They keep a lot of things in query params:
http://rollupjs.org/#{"options":
{"format":"es6","moduleName":"myBundle","globals":{}},"modules":
[{"name":"main.js","code":"import { cube } from './maths.js';\nconsole.log(
cube( 5 ) ); // 125"},{"name":"maths.js","code":"// This function isn't used
anywhere, so\n// Rollup excludes it from the bundle...\nexport function square (
x ) {\n\treturn x * x;\n}\n\n// This function gets included\nexport function
cube ( x ) {\n\t// rewrite this as `square( x ) * x`\n\t// and see what
happens!\n\treturn x * x * x;\n}"}]}