Bugfix. Fix esbuild post build function for HMR
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
type Params = {};
|
||||
type Params = {
|
||||
post_build_fn?: (params: {
|
||||
artifacts: any[];
|
||||
}) => Promise<void> | void;
|
||||
};
|
||||
export default function allPagesESBuildContextBundler(params?: Params): Promise<void>;
|
||||
export {};
|
||||
|
||||
@@ -62,7 +62,7 @@ export default async function allPagesESBuildContextBundler(params) {
|
||||
artifact;
|
||||
}
|
||||
}
|
||||
// params?.post_build_fn?.({ artifacts });
|
||||
params?.post_build_fn?.({ artifacts });
|
||||
// writeFileSync(
|
||||
// HYDRATION_DST_DIR_MAP_JSON_FILE,
|
||||
// JSON.stringify(artifacts, null, 4),
|
||||
|
||||
Reference in New Issue
Block a user