-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f044a7f
commit 487dc14
Showing
14 changed files
with
2,059 additions
and
3,497 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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,26 @@ | ||
import * as esbuild from "esbuild" | ||
import { rollup } from "rollup"; | ||
import esbuild from "rollup-plugin-esbuild"; | ||
import nodeResolve from "@rollup/plugin-node-resolve"; | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import json from "@rollup/plugin-json"; | ||
import terser from "@rollup/plugin-terser"; | ||
|
||
esbuild.build({ | ||
entryPoints: ["./src/index.ts"], | ||
bundle: true, | ||
outfile: "dist/index.js", | ||
platform: "node", | ||
minify: true, | ||
}) | ||
const bundle = await rollup({ | ||
input: `${import.meta.dirname}/src/index.ts`, | ||
plugins: [ | ||
esbuild(), | ||
nodeResolve({ | ||
preferBuiltins: true, | ||
}), | ||
commonjs(), | ||
json(), | ||
terser(), | ||
], | ||
}); | ||
|
||
await bundle.write({ | ||
file: `${import.meta.dirname}/dist/index.js`, | ||
format: "es", | ||
}); | ||
|
||
console.log("Build complete"); |
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.