Skip to content

Commit 09200dc

Browse files
refactor: improve check
1 parent 9231684 commit 09200dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default async function loader(content, map, meta) {
8888
if (shouldUseURLPlugin(options)) {
8989
const needToResolveURL = !options.esModule;
9090
const isSupportDataURLInNewURL =
91-
options.esModule && Boolean(this._compiler.fsStartTime);
91+
options.esModule && Boolean("fsStartTime" in this._compiler);
9292

9393
plugins.push(
9494
urlParser({

0 commit comments

Comments
 (0)