Skip to content

Commit

Permalink
refactor: removed support for loaders returning String instead of `…
Browse files Browse the repository at this point in the history
…Array` (#491)

BREAKING CHANGE: removed support for loaders returning `String` instead of `Array`
  • Loading branch information
evilebottnawi committed Oct 9, 2020
1 parent f752148 commit 7a0ce4c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)};
Expand Down

0 comments on commit 7a0ce4c

Please sign in to comment.