esbuild
esbuild copied to clipboard
An extremely fast bundler for the web
In the following example, `"foo.js"` is hardcoded inside the output: https://hyrious.me/esbuild-repl/?version=0.14.42&mode=build&modules=%5B%5B%22main.js%22%2C%22const+foo+%3D+await+import%28%27.%2Ffoo%27%29%3B%22%2C1%5D%2C%5B%22foo.js%22%2C%22module.exports+%3D+%7B__esModule%3A+true%2C+default%3A+42%7D%3B%22%2C0%5D%5D&buildOptions=%7B%22bundle%22%3Atrue%2C%22format%22%3A%22esm%22%2C%22splitting%22%3Atrue%2C%22minify%22%3Afalse%2C%22keepNames%22%3Afalse%7D Since it's a regular string, it cannot be removed by subsequent tools (such as Terser) and can lead to...
Through the current metafile, we can analyze the module dependency graph, but we do not know how a specific dependency is imported. For example, `import React from 'react'`, then the...
It seems that esubuild's buitin resolve will return more information about tsconfig than resolve hook, which will affect transform result such as `UseDefineForClassFields` https://github.com/evanw/esbuild/blob/master/internal/bundler/bundler.go#L788-L810 resolve hook doesn't support return anything...
Bundle does not splitting with multiple entry points and circular dependency
## Feature request Wondering if dynamic imports (eg. `import(specifier)`) can be transformed to check for the `__esModule` property on the imported module in case it's ESM to CJS transformed. ####...
I am learning esbuild and want to test with a simple project. I am struck on moving the src/index.html to dist/index.html Is there any loader available that runs or moves...
Can an option(s) be added to: a) Place sourcemaps in a separate folder in the output directory? (e.g. output/dist.js , output/sourcemaps/dist.js.map ) b) Customize the url used to refer to...
I've noticed that watch mode only works if the first build is successful. Is this intentional? My use case is a large repository with many apps and a single development...
I wrote two plugins which implement `onResolve`. ```js let plugin1 = { name: "plugin1", setup(build) { build.onResolve({ filter: /.*/ }, function (args) { return { }; }); }, }; ```...
Currently when bundling CSS if you only want to update the relative path in the `url()` and not move the file you have to use the plugin api as in:...