Skip to content

Commit 7a0ce4c

Browse files
refactor: removed support for loaders returning String instead of Array (#491)
BREAKING CHANGE: removed support for loaders returning `String` instead of `Array`
1 parent f752148 commit 7a0ce4c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ if (module.hot) {
175175
`!!${request}`
176176
)});
177177
178-
content = content.__esModule ? content.default : content;
179-
180-
if (typeof content === 'string') {
181-
content = [[module.id, content, '']];
182-
}`
178+
content = content.__esModule ? content.default : content;`
183179
}
184180
185181
var refs = 0;
@@ -301,11 +297,7 @@ if (module.hot) {
301297
`!!${request}`
302298
)});
303299
304-
content = content.__esModule ? content.default : content;
305-
306-
if (typeof content === 'string') {
307-
content = [[module.id, content, '']];
308-
}`
300+
content = content.__esModule ? content.default : content;`
309301
}
310302
311303
var options = ${JSON.stringify(runtimeOptions)};

0 commit comments

Comments
 (0)