We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a8479 commit 124ed85Copy full SHA for 124ed85
packages/esbuild-plugin-copy/src/lib/handler.ts
@@ -50,6 +50,10 @@ export function copyOperationHandler(
50
// globbedFromPath: /PATH/TO/assets/nest/foo.js → /nest/foo.js
51
const [, preservedDirStructure] = globbedFromPath.split(startFragment);
52
53
+ if (!preservedDirStructure) {
54
+ continue;
55
+ }
56
+
57
// /PATH/TO/assets/foo.js
58
// path.resolve seems to be unnecessary as globbed path is already absolute path
59
const sourcePath = path.resolve(globbedFromPath);
0 commit comments