Closed krainboltgreene closed 8 years ago
@krainboltgreene Config should be an object. Your rollup call don't do nothing. btw it should throw as you did not add entry option.
Try this
import babel from "rollup-plugin-babel"
export default {
format: "iife",
plugins: [
babel({
exclude: "node_modules/**"
})
]
};
@Rich-Harris @Victorystick I think we should throw an error if no one prop in config found.
@TrySound agreed https://github.com/rollup/rollup/pull/515
Thanks! On Feb 14, 2016 6:54 AM, "Bogdan Chadkin" notifications@github.com wrote:
Closed #43 https://github.com/rollup/rollup-plugin-babel/issues/43.
— Reply to this email directly or view it on GitHub https://github.com/rollup/rollup-plugin-babel/issues/43#event-549900122.
Oh, FYI I copied this rollout file from documentation.
@krainboltgreene Nobody said it's cli config. It's Rollup API usage.
Then the documentation might be a little confusing.
It's documentation of usage plugin, not cli, api, etc. For more information you should look at rollup usage here: https://github.com/rollup/rollup/wiki/JavaScript-API here https://github.com/rollup/rollup/wiki/Command-Line-Interface or here https://github.com/rollup/rollup/wiki/Build-tools
And then you just associate information of this plugin with the information from rollup wiki.
Can't really figure out why?