KonnorRogers / snowpack-plugin-rollup-bundle

A plugin for Snowpack to bundle for production.
MIT License
48 stars 6 forks source link

Specifying name of output file #38

Open sasoria opened 3 years ago

sasoria commented 3 years ago

Hi,

Is it possible to specify outputOptions.file with snowpack-plugin-rollup-bundle? It's seems to conflict with some options that are hardcoded into this plugin.

Config:

extendConfig: (config) => {
    config.outputOptions.file = 'bundle.esm.js';
    config.outputOptions.format = 'esm';

     return config;
},

Error:

[snowpack-plugin-rollup-bundle] Error: You must set "output.dir" instead of "output.file" when providing named inputs