@t8/serve 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ async function bundle({ path = "", bundle: options } = {}) {
16
16
  let outputFile = join(path, "dist", normalizedOptions.output ?? "index.js");
17
17
  await rm(join(path, "dist"), { recursive: true, force: true });
18
18
  await exec(
19
- `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=neutral --log-level=warning`
19
+ `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=browser --log-level=warning`
20
20
  );
21
21
  }
22
22
 
package/dist/run.cjs CHANGED
@@ -19,7 +19,7 @@ async function bundle({ path = "", bundle: options } = {}) {
19
19
  let outputFile = (0, import_node_path.join)(path, "dist", normalizedOptions.output ?? "index.js");
20
20
  await (0, import_promises.rm)((0, import_node_path.join)(path, "dist"), { recursive: true, force: true });
21
21
  await exec(
22
- `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=neutral --log-level=warning`
22
+ `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=browser --log-level=warning`
23
23
  );
24
24
  }
25
25
 
package/dist/run.mjs CHANGED
@@ -18,7 +18,7 @@ async function bundle({ path = "", bundle: options } = {}) {
18
18
  let outputFile = join(path, "dist", normalizedOptions.output ?? "index.js");
19
19
  await rm(join(path, "dist"), { recursive: true, force: true });
20
20
  await exec(
21
- `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=neutral --log-level=warning`
21
+ `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=browser --log-level=warning`
22
22
  );
23
23
  }
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/serve",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "node",
package/src/bundle.ts CHANGED
@@ -18,6 +18,6 @@ export async function bundle({ path = "", bundle: options }: Config = {}) {
18
18
 
19
19
  await rm(join(path, "dist"), { recursive: true, force: true });
20
20
  await exec(
21
- `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=neutral --log-level=warning`,
21
+ `npx esbuild ${inputFile} --outfile=${outputFile} --bundle --platform=browser --log-level=warning`,
22
22
  );
23
23
  }