Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ Btw, I think LOC 177 needs to have this change too (at least, in our case we needed to patch both places)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm, had to update both places.

}
)
} else {
if (!fs.existsSync(outModulesPath)) {
Expand Down