Skip to content

bug: rollup's 'external' option is not supported in stencil.config #3226

@awk

Description

@awk

Prerequisites

Stencil Version

2.13.0

Current Behavior

Rollup provides an option to supply a value for external (a string, regex, array of either or a function) - https://rollupjs.org/guide/en/#external However stencil does not support this option in the rollupConfig.inputOptions section of a stencil.config

Expected Behavior

With an external option specified the matching packages would be excluded from the output bundle (per rollups default behavior)

Steps to Reproduce

Add

rollupConfig: { inputOptions: { external: /foo*/, } }, 

to a stencil.config.ts in a new project and observe that the option is flagged as an error by typescript and that it has no impact on the generated bundle files.

Code Reproduction URL

Additional Information

There is commentary about supporting this rollup option in #1938 - but that issue is now stale and only contributors can comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions