From cc33b9494e22922990b1d16c2471cc8a291975e7 Mon Sep 17 00:00:00 2001 From: Muhammad Alfian Rasyidin Date: Wed, 3 May 2023 09:34:05 +0700 Subject: [PATCH] Fix #272: symlink deps are not included in the build --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 90f95a2e..eb1db8ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -210,7 +210,7 @@ export class TypeScriptPlugin { } if (!fs.existsSync(destFileName)) { - fs.copySync(path.resolve(filename), path.resolve(path.join(BUILD_FOLDER, filename))) + fs.copySync(path.resolve(filename), path.resolve(path.join(BUILD_FOLDER, filename)), { dereference: true }) } } } @@ -233,7 +233,8 @@ 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)) {