Skip to content

Commit 85ed3f3

Browse files
authored
fix(build): replace the module property with the source property (#1102)
This is more in-line with the outputted `package.json` before the transition from Pika to ESBuild
1 parent ee2e50b commit 85ed3f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import esbuild from "esbuild";
22
import { copyFile, readFile, writeFile, rm } from "node:fs/promises";
33
import { glob } from "glob";
44

5+
/** @type {esbuild.BuildOptions} */
56
const sharedOptions = {
67
sourcemap: "external",
78
sourcesContent: true,
@@ -68,7 +69,7 @@ async function main() {
6869
default: "./dist-bundle/index.js",
6970
},
7071
},
71-
module: "dist-src/index.js",
72+
source: "dist-src/index.js",
7273
sideEffects: false,
7374
},
7475
null,

0 commit comments

Comments
 (0)