Skip to content

Commit 8d1764d

Browse files
committed
chore: update snapshots
1 parent 808d720 commit 8d1764d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/runtime/sourceMaps.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ module.exports = (item) => {
99
}
1010

1111
const btoaPolyfill =
12-
typeof btoa === "undefined"
13-
? (str) => {
12+
typeof btoa === "function"
13+
? btoa
14+
: (str) => {
1415
const buffer =
1516
str instanceof Buffer ? str : Buffer.from(str.toString(), "binary");
1617
return buffer.toString("base64");
17-
}
18-
: btoa;
18+
};
1919
const base64 = btoaPolyfill(
2020
unescape(encodeURIComponent(JSON.stringify(cssMapping))),
2121
);

0 commit comments

Comments
 (0)