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

Lines changed: 1 addition & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy