Skip to content

Instantly share code, notes, and snippets.

@kazuya-k-ishibashi
Created January 6, 2018 12:29
Show Gist options
  • Save kazuya-k-ishibashi/7382142fc8ce42f7fa95e04b112fd9ef to your computer and use it in GitHub Desktop.
Save kazuya-k-ishibashi/7382142fc8ce42f7fa95e04b112fd9ef to your computer and use it in GitHub Desktop.
import resolve from "rollup-plugin-node-resolve"
import commonjs from "rollup-plugin-commonjs"
import includePaths from "rollup-plugin-includepaths"
import buble from "rollup-plugin-buble"
export default {
input: "./src/index.js",
output: {
file: "./dist/bundle.js",
format: "cjs"
//format: "iife"
//name: "bundle"
},
plugins: [
resolve(),
commonjs({ jsnext: true }),
includePaths({
paths: [ "./src" ],
extensions: [ ".js", ".json" ]
}),
buble()
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment