Skip to content

Commit

Permalink
fix: #210
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangHongEn committed Dec 15, 2024
1 parent 56806e6 commit a9121a8
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/plugins/pluginProxySharedModule_preBuild.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defu } from 'defu';
import { Plugin, UserConfig, WatchOptions } from 'vite';
import { Plugin, UserConfig } from 'vite';
import { NormalizedShared } from '../utils/normalizeModuleFederationOptions';
import { PromiseStore } from '../utils/PromiseStore';
import VirtualModule from '../utils/VirtualModule';
Expand Down Expand Up @@ -99,22 +98,5 @@ export function proxySharedModule(options: {
);
},
},
{
name: 'watchLocalSharedImportMap',
apply: 'serve',
config(config) {
config.optimizeDeps = defu(config.optimizeDeps, {
exclude: [getLocalSharedImportMapPath()],
});
config.server = defu(config.server, {
watch: {
ignored: [],
},
});
const watch = config.server.watch as WatchOptions;
watch.ignored = [].concat(watch.ignored as any);
watch.ignored.push(`!**${getLocalSharedImportMapPath()}**`);
},
},
];
}

0 comments on commit a9121a8

Please sign in to comment.