Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checkpoint towards using package-bundler
This would give us two things: publishing as ESM in addition to CJS, and the ability to have some symbols come from "deep imports" that aren't loaded automatically. It replaces some hacks like runtime requires in src/plugin/index.ts, and adds things like "you don't need to load express unless you actually import from the standalone directory". A directory with an index.ts in it is an entry point. The main rule is: you can import arbitrarily within your own entry point, but you can't do a "deep" import of a specific file or directory inside another entry point. Note that this means that any code that needs to be accessible from multiple entry points but not externally importable should be in an entry point whose name contains "internal" so that folks understand they shouldn't rely on its existence. This is coming close to working. Some issues I'm running into include:
- Loading branch information