Skip to content

Commit 9e5ce56

Browse files
perf: improve source parse (#251)
1 parent c9c8dad commit 9e5ce56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/source-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ export default (options) =>
506506
let { value } = source;
507507
const URLObject = parse(value);
508508

509-
if (typeof URLObject.hash !== 'undefined') {
509+
if (URLObject.hash) {
510510
const { hash } = URLObject;
511511

512512
URLObject.hash = null;

0 commit comments

Comments
 (0)