could rollup can bundle es2015_module and commonjs_module at both
tgxpuisb opened this issue · 1 comments
I'm sorry to ask you this question at here, but I was troubled by this question for a long time
I found you at other registry and I know you are very proficient in rollup, SO, I hope you can help me to resolve this question, thanks a lot
this question is: can I use rollup to bundle es2015_module and commonjs_module at the same file
just like:
import { foo } from './foo.js'
const bar = require('./bar.js')
// other code
I used rollup-plugin-commonjs but it will throw errors when run bundling-script
why would you want to do that? Just stick to es2015 imports all the way.
On 18.10.2016 06:46, liyizhi wrote:
I'm sorry to ask you this question at here, but I was troubled by this
question for a long time
I found you at other registry and I know you are very proficient in
rollup, SO, I hope you can help me to resolve this question, thanks a lot
this question is: can I use rollup to bundle es2015_module and
commonjs_module at the same file
just like:|import { foo } from './foo.js' const bar = require('./bar.js') // other
code |I used rollup-plugin-commonjs but it will throw errors when run
bundling-script—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAjbjPtdrDPFr91wP8teuL0Z1Usw0TxXks5q1E8bgaJpZM4KZX3A.