golang-wasm
golang-wasm copied to clipboard
Missing path dashes on Windows
Describe the bug: Missing path dashes on Windows
To reproduce: CRA 5.0.1 craco 7.0.0
Screenshots:
Browser, OS, Go version and Golang-WASM version:
- OS: Windows 11
- Go: 1.19.3
- Golang-WASM: 0.1.0
Additional context:
Quick fix: Replacing \ with /
const wasmSavePath = path.join(__dirname, 'wasm_exec.js').replace(/\\/g,"/");
import goWasm from \'${path.join(__dirname, \'bridge.js\').replace(/\\/g,"/")}'