Skip to content

Commit

Permalink
Follow symlinks forever (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjensen authored Nov 26, 2020
1 parent 3fbf1a2 commit 1639c4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snowpack/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ export async function command(commandOptions: CommandOptions) {
absolute: true,
nodir: true,
dot: true,
follow: true,
});

if (!config.experiments.optimize?.bundle) {
Expand Down Expand Up @@ -426,6 +427,7 @@ export async function command(commandOptions: CommandOptions) {
absolute: true,
nodir: true,
dot: true,
follow: true,
});
for (const rawLocOnDisk of allFiles) {
const fileLoc = path.resolve(rawLocOnDisk); // this is necessary since glob.sync() returns paths with / on windows. path.resolve() will switch them to the native path separator.
Expand Down

0 comments on commit 1639c4b

Please sign in to comment.