Skip to content

Commit d601441

Browse files
LinusBorgyyx990803
authored andcommitted
fix: avoid using ES6 in code injected into --lib builds (#1736)
1 parent 0bdc9e2 commit d601441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/commands/build/setPublicPath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is imported into lib/wc client bundles.
22

33
if (typeof window !== 'undefined') {
4-
let i
4+
var i
55
if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js$/))) {
66
__webpack_public_path__ = i[1] // eslint-disable-line
77
}

0 commit comments

Comments
 (0)