Skip to content

Commit b05028f

Browse files
committed
bug fix
1 parent 0810a27 commit b05028f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cloudflare/src/cli/build/patches/plugins/wrangler-external.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function setWranglerExternal() {
2626
const namespace = "wrangler-externals-plugin";
2727

2828
//TODO: Ideally in the future we would like to analyze the files in case they are using wasm in a Node way (i.e. WebAssembly.instantiate)
29-
build.onResolve({ filter: /(\.bin|\.wasm(\?module))$/ }, ({ path, importer }) => {
29+
build.onResolve({ filter: /(\.bin|\.wasm(\?module)?)$/ }, ({ path, importer }) => {
3030
return {
3131
path: resolve(dirname(importer), path),
3232
namespace,

packages/cloudflare/src/cli/build/utils/workerd.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function copyWorkerdPackages(options: BuildOptions, nodePackages: M
8585
logger.debug(
8686
`Copying package using a workerd condition: ${path.relative(options.appPath, src)} -> ${path.relative(options.appPath, dst)}`
8787
);
88-
fs.cp(src, dst, { recursive: true, force: true });
88+
await fs.cp(src, dst, { recursive: true, force: true });
8989
// Write the transformed package.json
9090
await fs.writeFile(path.join(dst, "package.json"), JSON.stringify(transformed), "utf8");
9191
}

0 commit comments

Comments
 (0)