@ltipton/esb-node
v0.0.3
Published
Build your Typescript Node.js projects using blazing fast esbuild
Downloads
1
Maintainers
Readme
esb-node
This is starting out as a fork of this repo But because they don't think bundle in node.js should be allowed, I had to fork it. I plan to make a few other changes, so I just made it it's own repo. But, as of right now, the repo is the same except it gives you full access to the esbuild config. For more information see the Readme in the parent repo
Notes
- I changed the bin file name from
etsc
toesbn
to not conflict with the parent repo - If you were using that repo previously, be sure to update your scripts to use
esbn
Install
yarn add @ltipton/esb-node --dev
Usage
- Add an
esbn
script to your package.json scripts section"scripts": { "dev": "esbn --config=path/to/my/config.js" }
- Next, run the command
yarn dev
from the same directory as thepackage.json
Configuration
- See esbuild options here
module.exports = {
outDir: "./dist",
esbuild: {
bundle: true,
// any other esbuild option
},
assets: {
baseDir: "src",
outDir: "./dist",
filePatterns: ["**/*.json"],
},
}