You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a plugin that can bundle a workspace into something that can be deployed to Lambda or Docker. It's sort of like yarnpkg-builder, but differs in one significant way: it allows specifying dependencies that esbuild should ignore that should be installed via yarn into a node_modules folder. This way, a workspace that uses dependencies that don't play nicely with esbuild, such as winston or sequelize, can be safely bundled separately from the esbuild output.
Bonus points: If there's a way to tell if a dependency is unplugged or not, that would also be really helpful, as by default I'd want all unplugged deps to end up in the package.json file, and not built through esbuild
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a plugin that can bundle a workspace into something that can be deployed to Lambda or Docker. It's sort of like yarnpkg-builder, but differs in one significant way: it allows specifying dependencies that esbuild should ignore that should be installed via yarn into a
node_modules
folder. This way, a workspace that uses dependencies that don't play nicely withesbuild
, such aswinston
orsequelize
, can be safely bundled separately from the esbuild output.I have a function here that tries to go through a workspace, examining all recursive child workspaces, to find a mapping of what dependency versions are used: https://gist.github.com/dmattia/152436a804e676c3f77611ee2ef427b9#file-bundle-ts-L70-L108
However, this ends up just giving me a semver range, not the actual resolved version, which I need for the next step, which is writing out a
package.json
file to install the dependencies with: https://gist.github.com/dmattia/152436a804e676c3f77611ee2ef427b9#file-bundle-ts-L167-L184Bonus points: If there's a way to tell if a dependency is
unplugged
or not, that would also be really helpful, as by default I'd want all unplugged deps to end up in the package.json file, and not built through esbuildBeta Was this translation helpful? Give feedback.
All reactions