From 7a0ce4cfd19a2be6ad8ffe274d38618a77b22199 Mon Sep 17 00:00:00 2001 From: Alexander Krasnoyarov Date: Fri, 9 Oct 2020 14:05:51 +0300 Subject: [PATCH] refactor: removed support for loaders returning `String` instead of `Array` (#491) 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)};