From 8d826f99cf651ef00624a1c190160ece772065b5 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 14 Jan 2022 17:51:41 +0800 Subject: [PATCH] Core: Fix __namedExportsOrder warning from preview.js --- lib/builder-webpack4/src/preview/virtualModuleEntry.template.js | 1 + lib/builder-webpack5/src/preview/virtualModuleEntry.template.js | 1 + 2 files changed, 2 insertions(+) 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.