Skip to content

Commit

Permalink
update(builder): added esbuild builder for cjs bundle (#61)
Browse files Browse the repository at this point in the history
* update(builder): added esbuild builder for cjs bundle

* update builder
  • Loading branch information
pragmatos authored Jun 22, 2023
1 parent 0323428 commit 85b79c7
Show file tree
Hide file tree
Showing 5 changed files with 1,114 additions and 46 deletions.
15 changes: 15 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const esbuild = require('esbuild');

console.log('START building bundle...');
esbuild.build({
entryPoints: ['src/index.ts'],
bundle: true,
platform: 'node',
target: 'es2020',
outfile: 'dist/cjs/index.js',
sourcemap: false,
format: 'cjs',
legalComments: 'none',
treeShaking: true,
});
console.log('FINISH building bundle');
Loading

0 comments on commit 85b79c7

Please sign in to comment.