Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 3, 2024
1 parent 24d1b6a commit b1b0f20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ export default async function loader(content, map, meta) {
) {
isSupportAbsoluteURL = true;
}
const isSupportDataURL =
options.esModule && Boolean("fsStartTime" in this._compiler);

if (shouldUseImportPlugin(options)) {
plugins.push(
Expand Down Expand Up @@ -117,7 +115,7 @@ export default async function loader(content, map, meta) {
plugins.push(
urlParser({
isSupportAbsoluteURL,
isSupportDataURL,
isSupportDataURL: options.esModule,
imports: urlPluginImports,
replacements,
context: this.context,
Expand Down

0 comments on commit b1b0f20

Please sign in to comment.