RFC: Generate dependency manifest on modular build #1281
Replies: 1 comment 2 replies
-
Given there's already a dependency manifest built directly into the
I completely agree with this sentiment. The generation of the dependency manifest should be independent of the underlying build tool - although likely we'll need to write an API interface for consuming the build stat output to generate the interface needed for
Let's think about current state here - with the notion of an I would suggest that we likely want to include the dependencies in the manifest,
I was pondering this as I wrote this reply - realistically I think we can only analyse the range of dependency and trust SerVer behind the scenes, otherwise if we start pinning versions of dependencies then for |
Beta Was this translation helpful? Give feedback.
-
Having a way of generating a "dependency manifest" when we build a package would be useful for teams to allow-list / block-list dependencies, do static analysis on them or generate import maps / rewrite imports to use as a basis for module federation and ESM CDN integration. This is an open request for comments to define how the dependency manifest should be defined and what should it contain. Here are some of the preliminary requirements identified so far:
Update:
package.json
in thedist
directory.bundledDependencies
will also be populatedOpen questions:
Beta Was this translation helpful? Give feedback.
All reactions