Skip to content

Commit 696b67d

Browse files
committed
feat(pack): support output.publicPath: runtime
1 parent 5e77e5a commit 696b67d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/pack/src/webpackCompat.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,19 @@ function compatOutput(
389389
) {
390390
throw "non string output chunkFilename not supported yet";
391391
}
392+
393+
if (
394+
webpackOutput?.publicPath &&
395+
typeof webpackOutput.publicPath !== "string"
396+
) {
397+
throw "non string output publicPath not supported yet";
398+
}
392399
return {
393400
path: webpackOutput?.path,
394401
filename: webpackOutput?.filename as string | undefined,
395402
chunkFilename: webpackOutput?.chunkFilename as string | undefined,
396403
clean: !!webpackOutput?.clean,
404+
publicPath: webpackOutput?.publicPath as string | undefined,
397405
};
398406
}
399407

0 commit comments

Comments
 (0)