-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all bundling into vscode-lit-plugin (#249)
* Move all bundling into vscode-lit-plugin This way downstream users of ts-lit-plugin are free to bundle it with their preferred settings.
- Loading branch information
Showing
7 changed files
with
40 additions
and
64 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as esbuild from "esbuild"; | ||
|
||
await esbuild.build({ | ||
entryPoints: ["src/extension.ts"], | ||
bundle: true, | ||
outfile: "built/bundle.js", | ||
platform: "node", | ||
minify: true, | ||
target: "es2017", | ||
format: "cjs", | ||
color: true, | ||
external: ["vscode", "typescript"], | ||
mainFields: ["module", "main"] | ||
}); | ||
|
||
await esbuild.build({ | ||
entryPoints: ["../ts-lit-plugin/src/index.ts"], | ||
bundle: true, | ||
outfile: "built/node_modules/ts-lit-plugin/lib/index.js", | ||
platform: "node", | ||
external: ["typescript"], | ||
minify: true, | ||
target: "es2017", | ||
format: "cjs", | ||
color: true, | ||
mainFields: ["module", "main"] | ||
}); |
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