Skip to content

Instantly share code, notes, and snippets.

@aloerina01
Last active January 10, 2017 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aloerina01/d047155a90370f4a69199301285cff6d to your computer and use it in GitHub Desktop.
Save aloerina01/d047155a90370f4a69199301285cff6d to your computer and use it in GitHub Desktop.
rollupのコンフィグ。もちろんES6で書く。
import nodeResolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import babel from 'rollup-plugin-babel'
export default {
entry: 'src/main.js', // エントリーポイント
dest: 'dist/bundle.js', // アウトプット
plugins: [ // 利用するプラグイン
nodeResolve({ jsnext: true }), // node_modulesを利用する
commonjs(), // CommonJSモジュールをES6に変換する
babel() // ES5に変換する
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment