diff --git a/src/index.ts b/src/index.ts index a249ce58..85b38f9b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -197,7 +197,10 @@ export class TypeScriptPlugin { fs.copySync( path.resolve('node_modules'), - path.resolve(path.join(BUILD_FOLDER, 'node_modules')) + path.resolve(path.join(BUILD_FOLDER, 'node_modules')), + { + dereference: true, + } ) } else { if (!fs.existsSync(outModulesPath)) {