Skip to content

Commit

Permalink
Use esbuild for video streamer client
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheeo committed Sep 10, 2024
1 parent 9089d64 commit 3d3246e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions client/build.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as esbuild from 'esbuild';

await esbuild.build({
entryPoints: ['src/index.ts'],
bundle: true,
minify: true,
target: ["chrome58","firefox57","safari18","edge18"],
sourcemap: true,
outfile: './dist/live-video-streamer-client.js'
});
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"types": "dist/live-video-streamer-client.d.ts",
"version": "0.0.0",
"scripts": {
"bundle": "ts-patch install -s && yarn webpack --bail --mode=production \"$@\"",
"bundle": "node ./build.mjs",
"bundle-dev": "ts-patch install -s && yarn webpack --bail --mode=development \"$@\"",
"clean": "rm -rf build dist node_modules",
"test": "yarn jest --clearCache && ts-patch install && jest --config test/jest.config.js \"$@\""
Expand Down Expand Up @@ -36,6 +36,7 @@
"@types/jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"esbuild": "^0.23.1",
"eslint": "^8.15.0",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9704,6 +9704,7 @@ __metadata:
"@typescript-eslint/eslint-plugin": ^5.23.0
"@typescript-eslint/parser": ^5.23.0
es-abstract: ^1.21.2
esbuild: ^0.23.1
eslint: ^8.15.0
is-typed-array: ^1.1.10
jest: ^28.1.0
Expand Down

0 comments on commit 3d3246e

Please sign in to comment.