rollup / rollup-plugin-babel

This package has moved and is now available at @rollup/plugin-babel / https://github.com/rollup/plugins/tree/master/packages/babel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does include exclude everything not listed in the array/pattern?

chopfitzroy opened this issue · comments

I was looking at #323 and want to do something similar, my current solution is:

babel({
    extensions: ['.js', '.mjs', '.html', '.svelte'],
    include: ['src/**', 'node_modules/svelte/**']
})

My question is does this explicitly exclude all other node_modules?

My question is does this explicitly exclude all other node_modules?

Yes, if you specify include pattern then by nature only those files are included which means that everything else is excluded.