Skip to content

Commit e63ffc1

Browse files
author
Eric Wheeler
committed
fix: use correct distDir variable for WASM file copying
The copyWasmFiles plugin was using an undefined targetDir variable when copying tree-sitter WASM files. Changed to use the correctly defined distDir variable, fixing the build process. Signed-off-by: Eric Wheeler <[email protected]>
1 parent 6a982c7 commit e63ffc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esbuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const copyWasmFiles = {
4848
console.log(`Copying ${wasmFiles.length} tree-sitter WASM files to dist directory`)
4949

5050
wasmFiles.forEach((filename) => {
51-
fs.copyFileSync(path.join(languageWasmDir, filename), path.join(targetDir, filename))
51+
fs.copyFileSync(path.join(languageWasmDir, filename), path.join(distDir, filename))
5252
})
5353
} else {
5454
console.warn(`Tree-sitter WASM directory not found: ${languageWasmDir}`)

0 commit comments

Comments
 (0)