Last active
January 10, 2017 03:59
-
-
Save aloerina01/d047155a90370f4a69199301285cff6d to your computer and use it in GitHub Desktop.
rollupのコンフィグ。もちろんES6で書く。
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 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