Last active
February 6, 2017 18:53
-
-
Save salzhrani/de494bff3c848600d5d932126b7c3068 to your computer and use it in GitHub Desktop.
bundle js modules using rollup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function foo() { | |
return "foo"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import foo from './foo'; | |
console.log(foo()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
put these files in a directory
run
npm install
to build run
npm build