Skip to content

Instantly share code, notes, and snippets.

@salzhrani
Last active February 6, 2017 18:53
Show Gist options
  • Save salzhrani/de494bff3c848600d5d932126b7c3068 to your computer and use it in GitHub Desktop.
Save salzhrani/de494bff3c848600d5d932126b7c3068 to your computer and use it in GitHub Desktop.
bundle js modules using rollup
export default function foo() {
return "foo";
}
import foo from './foo';
console.log(foo());
{
"name": "quick-spike",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rollup index.js -o build.js -f umd"
},
"author": "",
"license": "ISC",
"devDependencies": {
"rollup": "^0.41.4"
}
}
@salzhrani
Copy link
Author

put these files in a directory
run npm install
to build run npm build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment