You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying the rollup.config.js option in the project.json file, if that rollup config returns an array of configurations, the build fails with the error message:
Unknown input options: 0, 1. Allowed options: acorn, acornInjectPlugins, cache, context, experimentalCacheExpiry, external, inlineDynamicImports, input, makeAbsoluteExternalsRelative, manualChunks, maxParallelFileOps, maxParallelFileReads, moduleContext, onwarn, perf, plugins, preserveEntrySignatures, preserveModules, preserveSymlinks, shimMissingExports, strictDeprecations, treeshake, watch Error during bundle: Error: You must supply options.input to rollup
Rollup supports multiple configurations in a rollup.config.js file by returning an array of configurations. For example see this example configuration from the rollup docs: https://rollupjs.org/configuration-options/#watch. I would expect multiple output files to be generated.
Run npm build and it fails. I have provided 2 rollup configs: one with the array configuration (rollup.config.js) and one without (rollup-working.config.js).
Current Behavior
When specifying the rollup.config.js option in the project.json file, if that rollup config returns an array of configurations, the build fails with the error message:
Unknown input options: 0, 1. Allowed options: acorn, acornInjectPlugins, cache, context, experimentalCacheExpiry, external, inlineDynamicImports, input, makeAbsoluteExternalsRelative, manualChunks, maxParallelFileOps, maxParallelFileReads, moduleContext, onwarn, perf, plugins, preserveEntrySignatures, preserveModules, preserveSymlinks, shimMissingExports, strictDeprecations, treeshake, watch Error during bundle: Error: You must supply options.input to rollup
the custom rollup config we are using is:
Expected Behavior
Rollup supports multiple configurations in a rollup.config.js file by returning an array of configurations. For example see this example configuration from the rollup docs: https://rollupjs.org/configuration-options/#watch. I would expect multiple output files to be generated.
GitHub Repo
https://github.com/thomassimko/nx-rollup-multi-config
Steps to Reproduce
npm install
npm build
and it fails. I have provided 2 rollup configs: one with the array configuration (rollup.config.js) and one without (rollup-working.config.js).Nx Report
Failure Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: