diff --git a/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts b/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts index 7ff3c13e20fcc..eafa1a01ac386 100644 --- a/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts +++ b/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts @@ -124,6 +124,10 @@ export class NativeWebpackPlugin { const dllFile = require.resolve('node-pty/build/Release/winpty.dll'); const targetDllFile = path.join(targetDirectory, 'winpty.dll'); await this.copyExecutable(dllFile, targetDllFile); + } else { + const sourceFile = require.resolve('node-pty/build/Release/spawn-helper'); + const targetFile = path.join(targetDirectory, 'spawn-helper'); + await this.copyExecutable(sourceFile, targetFile); } }