Skip to content
Advertisement

Tag: bundling-and-minification

Natively import ES module dependencies from npm without bundling/transpiling first-party source

Background I’m trying to create a “buildless” JavaScript app, one where I don’t need a watch task running to transpile JSX, re-bundle code, etc every time I save any source file. It works fine with just first-party code, but I’m stuck when I try to import dependencies from npm. Goal I want to achieve this kind of workflow: npm install

esbuild not bundling files

I am trying to use esbuild to bundle and minify my files in an npm project. It is minimizing every file that I pass in, but it is not bundling. It gives me the error that I must use ‘outdir’ when there are multiple files. However, this gives me back all of those files, minimized, in a folder. This is

Advertisement