File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 6
6
"dependencies" : {
7
7
"copy-to-clipboard" : " ^3.3.3" ,
8
8
"date-fns" : " ^4.1.0" ,
9
- "esbuild-wasm" : " ^0.25.9 " ,
9
+ "esbuild-wasm" : " ^0.25.10 " ,
10
10
"highlight.js" : " ^11.11.1" ,
11
11
"lodash" : " ^4.17.21" ,
12
12
"prism-react-renderer" : " ^2.4.1" ,
Original file line number Diff line number Diff line change 1
1
import { initialize , transform } from "esbuild-wasm" ;
2
+ import { version } from "esbuild-wasm/package.json" ;
2
3
3
4
let initializeEsBuild : Promise < void > | null = null ;
4
5
@@ -16,7 +17,7 @@ export const initializeTsxTransformer = async () => {
16
17
if ( ! initializeEsBuild ) {
17
18
try {
18
19
initializeEsBuild = initialize ( {
19
- wasmURL : " https://unpkg.com/esbuild-wasm/esbuild.wasm" ,
20
+ wasmURL : ` https://unpkg.com/esbuild-wasm@ ${ version } /esbuild.wasm` ,
20
21
} ) ;
21
22
} catch ( error ) {
22
23
console . error ( `Initializing tsx transformer failed:` , error ) ;
Original file line number Diff line number Diff line change @@ -2680,12 +2680,12 @@ __metadata:
2680
2680
languageName : node
2681
2681
linkType : hard
2682
2682
2683
- " esbuild-wasm@npm:^0.25.9 " :
2684
- version : 0.25.9
2685
- resolution : " esbuild-wasm@npm:0.25.9 "
2683
+ " esbuild-wasm@npm:^0.25.10 " :
2684
+ version : 0.25.10
2685
+ resolution : " esbuild-wasm@npm:0.25.10 "
2686
2686
bin :
2687
2687
esbuild : bin/esbuild
2688
- checksum : 10c0/8c4865d061c94303939549ba67930dfdd51ced9a46ef1b09f63b15696de5075690c4680f616a1932cb0296eed615eb1fa0670337104c4c83d95fac1c2217cf00
2688
+ checksum : 10c0/2cc225d595be2a0d4c5d599d51fe87845cbd1750b40e84869c51d068c2067d33e307d8cb33d0eec2f638621415075fff01ac2a0ed71ea319c2e3070028d2d410
2689
2689
languageName : node
2690
2690
linkType : hard
2691
2691
@@ -4878,7 +4878,7 @@ __metadata:
4878
4878
" @vitejs/plugin-react " : " npm:^5.0.3"
4879
4879
copy-to-clipboard : " npm:^3.3.3"
4880
4880
date-fns : " npm:^4.1.0"
4881
- esbuild-wasm : " npm:^0.25.9 "
4881
+ esbuild-wasm : " npm:^0.25.10 "
4882
4882
eslint : " npm:^9.35.0"
4883
4883
eslint-plugin-react : " npm:^7.37.5"
4884
4884
eslint-plugin-react-hooks : " npm:^6.0.0"
You canāt perform that action at this time.
0 commit comments