Skip to content

feat: stencil compiler should be configurable to watch arbitrary files for change and recompile #3151

@petercmuc

Description

@petercmuc

Prerequisites

Describe the Feature Request

stencil compiler should be configurable to watch arbitrary files for change and recompile.

Describe the Use Case

When devolping a multi-npm-package stencil application it would be helpful if a change of a node module would trigger re-compilation of the app.
In our case we develop an app and have a npm package that includes certain re-usable webcomponents, also built with stencil. These need to be integrated in the app to check their functionality. This is achieved using npm link which creates a symlink in the node_modules directory of the app that uses them.
This setup requires the component package to be built (this can be simplified using the watch compiler option) and the app to be re-started with every change of the components.

Describe Preferred Solution

Make included default watch files completely configurable (default seems to be ".src/")

Describe Alternatives

Since there is already an option to exclude certain files from watch using "watchIgnoredRegex" it would be convenient to have a "watchAdditionalRegex" with contains an array of RegEx which matches additional files to be watched.

Related Code

No response

Additional Information

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions