diff --git a/lib/builder-webpack4/src/preview/virtualModuleEntry.template.js b/lib/builder-webpack4/src/preview/virtualModuleEntry.template.js index c02aa235a0ad..1e3f319f27ce 100644 --- a/lib/builder-webpack4/src/preview/virtualModuleEntry.template.js +++ b/lib/builder-webpack4/src/preview/virtualModuleEntry.template.js @@ -44,6 +44,7 @@ Object.keys(config).forEach((key) => { v[key] = value; return addParameters(v, false); } + case '__namedExportsOrder': case 'decorateStory': case 'renderToDOM': { return null; // This key is not handled directly in v6 mode. diff --git a/lib/builder-webpack5/src/preview/virtualModuleEntry.template.js b/lib/builder-webpack5/src/preview/virtualModuleEntry.template.js index c02aa235a0ad..1e3f319f27ce 100644 --- a/lib/builder-webpack5/src/preview/virtualModuleEntry.template.js +++ b/lib/builder-webpack5/src/preview/virtualModuleEntry.template.js @@ -44,6 +44,7 @@ Object.keys(config).forEach((key) => { v[key] = value; return addParameters(v, false); } + case '__namedExportsOrder': case 'decorateStory': case 'renderToDOM': { return null; // This key is not handled directly in v6 mode.