-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance build speed by esbuild
- Loading branch information
Jonghakseo
committed
Jul 19, 2024
1 parent
12a2540
commit 3ef2d9a
Showing
7 changed files
with
296 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as esbuild from "esbuild" | ||
|
||
/** | ||
* @type { import("esbuild").BuildOptions } | ||
*/ | ||
const buildOptions = { | ||
entryPoints: ["./index.ts", "./lib/**/*.ts", "./lib/**/*.tsx"], | ||
tsconfig: "./tsconfig.json", | ||
bundle: false, | ||
target: 'es6', | ||
outdir: "./dist", | ||
sourcemap: true, | ||
} | ||
|
||
await esbuild.build(buildOptions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as esbuild from "esbuild" | ||
|
||
/** | ||
* @type { import("esbuild").BuildOptions } | ||
*/ | ||
const buildOptions = { | ||
entryPoints: ["./index.ts","./tailwind.config.ts", "./lib/**/*.ts", "./lib/**/*.tsx"], | ||
tsconfig: "./tsconfig.json", | ||
bundle: false, | ||
target: 'es6', | ||
outdir: "./dist", | ||
sourcemap: true, | ||
} | ||
|
||
await esbuild.build(buildOptions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.