diff --git a/src/runtime/injectStylesIntoStyleTag.js b/src/runtime/injectStylesIntoStyleTag.js index 6914b715..3cf24737 100644 --- a/src/runtime/injectStylesIntoStyleTag.js +++ b/src/runtime/injectStylesIntoStyleTag.js @@ -187,7 +187,7 @@ function applyToTag(style, options, obj) { style.removeAttribute('media'); } - if (sourceMap && btoa) { + if (sourceMap && typeof btoa !== 'undefined') { css += `\n/*# sourceMappingURL=data:application/json;base64,${btoa( unescape(encodeURIComponent(JSON.stringify(sourceMap))) )} */`;