-
Notifications
You must be signed in to change notification settings - Fork 1
/
esbuild.js
36 lines (31 loc) · 945 Bytes
/
esbuild.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// const esbuild = require('esbuild');
// const {readFile, writeFile, mkdir} = require('fs').promises;
// (async () => {
// await mkdir('./lib');
// const script = esbuild
// .buildSync({
// entryPoints: ['./src/index.ts'],
// bundle: true,
// minify: true,
// format: 'iife', //iife
// target: ['esnext'],
// write: false,
// globalName: 'myLib',
// outdir:'lib'
// });
// })();
// const { dtsPlugin } = require("esbuild-plugin-d.ts");
// const esbuild = require('esbuild');
// esbuild
// .build({
// entryPoints: ['src/index.ts'],
// outdir: 'lib',
// bundle: true,
// sourcemap: true,
// minify: false,
// splitting: true,
// format: 'esm',
// target: ['esnext'],
// // plugins: [dtsPlugin()]
// })
// .catch(() => process.exit(1));