From 8c18393aafc3ebadaac8bbfbfc10d15fc2e05c97 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Fri, 9 Oct 2020 13:57:31 +0300 Subject: [PATCH] refactor: removed support for loaders returning `String` instead of `Array` BREAKING CHANGE: removed support for loaders returning `String` instead of `Array` --- src/index.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/index.js b/src/index.js index 0cc776b8..0bb832ea 100644 --- a/src/index.js +++ b/src/index.js @@ -175,11 +175,7 @@ if (module.hot) { `!!${request}` )}); - content = content.__esModule ? content.default : content; - - if (typeof content === 'string') { - content = [[module.id, content, '']]; - }` + content = content.__esModule ? content.default : content;` } var refs = 0; @@ -301,11 +297,7 @@ if (module.hot) { `!!${request}` )}); - content = content.__esModule ? content.default : content; - - if (typeof content === 'string') { - content = [[module.id, content, '']]; - }` + content = content.__esModule ? content.default : content;` } var options = ${JSON.stringify(runtimeOptions)};