Skip to content

Commit cc33b94

Browse files
committedMay 3, 2023
Fix serverless#272: symlink deps are not included in the build
1 parent 256540c commit cc33b94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export class TypeScriptPlugin {
210210
}
211211

212212
if (!fs.existsSync(destFileName)) {
213-
fs.copySync(path.resolve(filename), path.resolve(path.join(BUILD_FOLDER, filename)))
213+
fs.copySync(path.resolve(filename), path.resolve(path.join(BUILD_FOLDER, filename)), { dereference: true })
214214
}
215215
}
216216
}
@@ -233,7 +233,8 @@ export class TypeScriptPlugin {
233233

234234
fs.copySync(
235235
path.resolve('node_modules'),
236-
path.resolve(path.join(BUILD_FOLDER, 'node_modules'))
236+
path.resolve(path.join(BUILD_FOLDER, 'node_modules')),
237+
{ dereference: true }
237238
)
238239
} else {
239240
if (!fs.existsSync(outModulesPath)) {

0 commit comments

Comments
 (0)