I get this error:
An unknown plugin "properties-transformations-properties" specified in the "base" at 0, tried to resolve relative to "/ home / me / Projects / myproj / src"
The message is pretty clear, so I know why this is happening, but I want to change where Babel is looking for plugins / presets / packages.
I am using Babel with rollup through rollup-plugin-babel .
The options that I give them are as follows:
{ plugins: [ 'transform-class-properties', 'transform-object-rest-spread' ], babelrc: false }
However, I cannot find an option to change where Babel is looking for plugins. Is there no way to do this without rewriting my list of plugins to use absolute paths?
I also cannot find a public API method for extracting dependencies from .babelrc , so itβs rather difficult to manually rewrite the file to use full paths. Notabene Babel configurations can also be saved in package.json, and there was some talk of adding support for .babelrc.js too - I really don't want to support my own project, which is looking for all the different places where the babel configuration can hide, parse the file and scan it for all plugins with and without any babel-plugin- .
babeljs rollupjs
mpen
source share