-
Notifications
You must be signed in to change notification settings - Fork 0
/
esbuild.js
20 lines (18 loc) · 957 Bytes
/
esbuild.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/createJWKs.js',
'./tsc/createJWT.js',
'./tsc/decodeJWT.js',
'./tsc/getAlgorithmOptions.js',
'./tsc/getHeaderAndPayloadAsStrings.js',
'./tsc/getNowInSeconds.js',
'./tsc/index.js',
'./tsc/toBase64Url.js',
'./tsc/verifyJWT.js',
],
})