Skip to content

Commit 7cc255d

Browse files
committed
handle non-folder in submodules
1 parent b4f3143 commit 7cc255d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/compilation/Inliner.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ module.exports = class Inliner {
179179
recursive: true,
180180
force: true,
181181
});
182+
if (
183+
!fs.lstatSync(path.join(root, this.subfolder, this.package, "src", "submodules", submodule)).isDirectory()
184+
) {
185+
continue;
186+
}
182187
await esbuild.build({
183188
...buildOptions,
184189
entryPoints: [path.join(root, this.subfolder, this.package, "src", "submodules", submodule, "index.ts")],

0 commit comments

Comments
 (0)