Skip to content

Commit da8bb02

Browse files
committed
chore: build rollup in multi-entry mode
1 parent e413848 commit da8bb02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/compilation/Inliner.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ module.exports = class Inliner {
165165
const entryPoint = path.join(root, this.subfolder, this.package, "src", "index.ts");
166166

167167
const inputOptions = (externals) => ({
168-
input: entryPoint,
168+
input: [entryPoint],
169169
plugins: [
170170
nodeResolve(),
171171
json(),
@@ -277,7 +277,9 @@ module.exports = class Inliner {
277277

278278
await submoduleBundle.write({
279279
...outputOptions,
280-
file: path.join(root, this.subfolder, this.package, "dist-cjs", "submodules", submodule, "index.js"),
280+
dir: path.dirname(
281+
path.join(root, this.subfolder, this.package, "dist-cjs", "submodules", submodule, "index.js")
282+
),
281283
});
282284

283285
await submoduleBundle.close();

0 commit comments

Comments
 (0)