-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesbuild.js
More file actions
13 lines (11 loc) · 735 Bytes
/
esbuild.js
File metadata and controls
13 lines (11 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
import esbuild from 'esbuild'
esbuild.build({ // // https://esbuild.github.io/api/
logLevel: 'info', // Show warnings, errors, and an output file summary.
sourcemap: true, // Source maps can make it easier to debug your code. They encode the information necessary to translate from a line/column offset in a generated output file back to a line/column offset in the corresponding original input file.
minify: true, // When enabled, the generated code will be minified instead of pretty-printed.
outdir: './dist', // Sets the output directory for the build operation.
entryPoints: [ // This is an array of files that each serve as an input to the bundling algorithm.
'./tsc/envWrite.js',
'./tsc/index.js',
],
})