Questions tagged [esbuild-plugin]
3 questions
2
votes
1 answer
esbuild hybrid plugin to bundle multiple files iife and single esm bundle
There is a project SlickGrid that have multiple files that are all written as iife (it was originally built with jQuery namespace as iife). Most files are optional and the user can choose which feature they are interested (ie slick.contextmenu.js,…

ghiscoding
- 12,308
- 6
- 69
- 112
1
vote
0 answers
How can i add dynamic import in my bundle with esbuild?
I have module with dynamic import
index.mjs
...
const components = [
'fer-dialog',
'welcome-description',
'welcome-diagram',
'welcome-feedback',
'welcome-logo',
]
for (let i = 0; i < components.length; ++i) {
…

Sergey
- 418
- 1
- 7
- 21
0
votes
0 answers
Why is esbuild creating a js file for a given css file
This is the directory structure
├── src/codemirror/codemirror.min2.css
├── build.mjs
Content of build.mjs:
import archiver from 'archiver'
import autoprefixer from 'autoprefixer'
import * as dotenv from 'dotenv'
import esbuild from 'esbuild'
import…

ishandutta2007
- 16,676
- 16
- 93
- 129