-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When used as "output plugin" the following warning arise:
(!) The "transform" hook used by the output plugin rollup-plugin-flow-entry is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.
We ideally want the plugin to be run only for commonjs, if not it will generate a .flow.js file for every output.
Despite the warning, the desired output file is properly created.
Sample config using multiple output:
import resolve from 'rollup-plugin-node-resolve';
import flowEntry from 'rollup-plugin-flow-entry';
import commonjs from 'rollup-plugin-commonjs';
let plugins = [
resolve(),
commonjs(),
];
export default {
plugins,
input: 'src/index.js',
output: [
{
file: 'name.umd.js',
format: 'umd',
},
{
file: 'name.cjs.js',
format: 'cjs',
plugins: [flowEntry()],
},
{
file: 'name.esm.js',
format: 'esm',
},
],
};Metadata
Metadata
Assignees
Labels
No labels