Skip to content

Commit d217012

Browse files
refactor: code
1 parent 6758813 commit d217012

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ export default async function loader(content, map, meta) {
8787
) {
8888
isSupportAbsoluteURL = true;
8989
}
90-
const isSupportDataURL =
91-
options.esModule && Boolean("fsStartTime" in this._compiler);
9290

9391
if (shouldUseImportPlugin(options)) {
9492
plugins.push(
@@ -117,7 +115,7 @@ export default async function loader(content, map, meta) {
117115
plugins.push(
118116
urlParser({
119117
isSupportAbsoluteURL,
120-
isSupportDataURL,
118+
isSupportDataURL: options.esModule,
121119
imports: urlPluginImports,
122120
replacements,
123121
context: this.context,

0 commit comments

Comments
 (0)