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 4, 2024
1 parent 6758813 commit d217012
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 d217012

Please sign in to comment.