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

Cannot specify option 'extensions'

Misaka-0x447f opened this issue · comments

image
Heres what I got. I did a console log for config the plugin got.

extensions is an option to rollup-plugin-babel, not an option to Babel itself, so you need to pass it directly to the plugin from via your Rollup configuration file.

extensions is an option to rollup-plugin-babel, not an option to Babel itself, so you need to pass it directly to the plugin from via your Rollup configuration file.

Wait... You can only merge plugin options and babel options in this plugin...

It looks like you have tried to pass extensions via Babel config file but you should pass it to rollup-plugin-babel itself