Skip to content

Commit

Permalink
Merge pull request #160 from finn-no/improve_lit_static_bundle_size
Browse files Browse the repository at this point in the history
fix: improve lit static bundle size
  • Loading branch information
digitalsadhu authored Jan 2, 2024
2 parents 23d296f + b6868ae commit a8333ce
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/lit-2/esbuild.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import esbuild from "esbuild";
import { plugin, load } from "@eik/esbuild-plugin";

await load({ maps: [{ imports: { "./lit-html.js": "./lit.min.js" } }] });

await esbuild.build({
entryPoints: ["./lit.min.js", "static-html.js"],
Expand All @@ -8,4 +11,5 @@ await esbuild.build({
outdir: "dist/",
target: ["es2017"],
sourcemap: true,
plugins: [plugin()],
});
3 changes: 2 additions & 1 deletion packages/lit-2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lit": "2.8.0"
},
"devDependencies": {
"esbuild": "0.19.11"
"esbuild": "0.19.11",
"@eik/esbuild-plugin": "1.1.45"
},
"eik": {
"name": "lit-2",
Expand Down
4 changes: 4 additions & 0 deletions packages/lit-3/esbuild.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import esbuild from "esbuild";
import { plugin, load } from "@eik/esbuild-plugin";

await load({ maps: [{ imports: { "./lit-html.js": "./lit.min.js" } }] });

await esbuild.build({
entryPoints: ["./lit.min.js", "static-html.js"],
Expand All @@ -8,4 +11,5 @@ await esbuild.build({
outdir: "dist/",
target: ["es2017"],
sourcemap: true,
plugins: [plugin()],
});
3 changes: 2 additions & 1 deletion packages/lit-3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lit": "3.1.0"
},
"devDependencies": {
"esbuild": "0.19.11"
"esbuild": "0.19.11",
"@eik/esbuild-plugin": "1.1.45"
},
"eik": {
"name": "lit-3",
Expand Down

0 comments on commit a8333ce

Please sign in to comment.