Open johnc-ftl opened 3 days ago
@johnc-ftl thanks for raising this issue.
This field is used to configure @rollup/plugin-node-resolve
when generating any non-documentation output target artifacts. the contents of this option get propagated by the rollup plugin to resolve
, which does the actual resolution of files in stencil's in-memory filesystem. In newer versions of @rollup/plugin-node-resolve
, this option has been removed, which no option to override defaults (creating a separation of concerns between the plugin and resolve
).
To use a local build output node_modules in addition to normal node_modules.
Can you please elaborate on your use case and provide maybe a minimal example for this?
Hi @christian-bromann - thank you for the explanation. I appreciate you all having the deprecation warning vs stopping working :)
Our use case is that we have some internal libraries, that we build first, and that our stencil project depends on. Those libraries write their build output to:
./dist/node_modules
whereas all the normal/external NPM dependencies are written to:
./node_modules
.
The Stencil project has external and internal dependencies, thus the config above.
Are you aware of another way to configure dependency resolution to resolve from both directories? I'm happy to switch to another approach that works.
Prerequisites
Stencil Version
4.22.3
Current Behavior
Using stencil config like:
To use a local build output node_modules in addition to normal node_modules.
This works as expected, but I receive the following warning with each build:
Expected Behavior
No warning.
System Info
Steps to Reproduce
Create a stencil library with similar config to what I provided above.
Code Reproduction URL
https://github.com/johncrim/stencil
Additional Information
(This isn't a repro URL - I don't think one is required, the issue is straightforward)