Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mf): 新增remoteHash参数控制mf的产物是否启用hash(#11711) #11714

Merged
merged 6 commits into from
Oct 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/plugins/src/mf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function mf(api: IApi) {
),
shared: zod.record(zod.any()),
library: zod.record(zod.any()),
remoteHash: zod.boolean(),
})
.partial();
},
Expand Down Expand Up @@ -70,7 +71,7 @@ export default function mf(api: IApi) {
);
}

const useHash = api.config.hash && api.env !== 'development';
const useHash = api.config.mf.remoteHash && api.env !== 'development';
consistent-k marked this conversation as resolved.
Show resolved Hide resolved

const mfConfig = {
name,
Expand Down