This directory servers as minimal reproducible configuration for build with various bundlers.
Run npm install && npm run build
, and then:
npm run build:webpack:cjs
- Run Webpack config as CommonJS modulenpm run build:rollup:cjs
- Run Rollup config as CommonJS modulenpm run build:esbuild:cjs
- Run esbuild build as CommonJS modulenpm run build:browserify:cjs
- Run Browserify build as CommonJS modulenpm run build:webpack:esm
- Run Rollup config as ES modulenpm run build:rollup:esm
- Run Rollup config as ES modulenpm run build:esbuild:esm
- Run esbuild build as ES modulenpm run build:browserify:esm
- Run Browserify build as ES modulenpm run open:webpack:cjs
- Open generated bundle from Webpack CommonJS configurationnpm run open:rollup:cjs
- Open generated bundle from Rollup CommonJS configurationnpm run open:esbuild:cjs
- Open generated bundle from esbuild CommonJS buildnpm run open:browserify:cjs
- Open generated bundle from Browserify CommonJS buildnpm run open:webpack:esm
- Open generated bundle from Webpack ES module configurationnpm run open:rollup:esm
- Open generated bundle from Rollup ES module configurationnpm run open:esbuild:esm
- Open generated bundle from esbuild ES module buildnpm run open:browserify:esm
- Open generated bundle from Browserify ES module build
In each opened HTML file you can see each module output inside browser console.
Each module is accessible from stdLibBrowser
global property.