We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eedca87 commit a787f4fCopy full SHA for a787f4f
1 file changed
packages/esbuild-plugin/src/index.ts
@@ -65,6 +65,10 @@ function esbuildDebugIdInjectionPlugin(logger: Logger): UnpluginOptions {
65
setup({ initialOptions, onLoad, onResolve }) {
66
// Clear state from previous builds (important for watch mode and test suites)
67
debugIdWrappedPaths.clear();
68
+ // Also clear metadataProxyEntryPoints here because if moduleMetadataInjectionPlugin
69
+ // is not instantiated in this build (e.g., moduleMetadata was disabled), we don't
70
+ // want stale entries from a previous build to affect the current one.
71
+ metadataProxyEntryPoints.clear();
72
73
if (!initialOptions.bundle) {
74
logger.warn(
0 commit comments