Skip to content

Commit ae24ec2

Browse files
authoredJul 29, 2019
fix: es3 compatibility (#390)
1 parent dd32fad commit ae24ec2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/runtime/addStyles.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ function addStyle(obj, options) {
278278
result =
279279
typeof options.transform === 'function'
280280
? options.transform(obj.css)
281-
: options.transform.default(obj.css);
281+
: // ES3 compatibility
282+
options.transform['default'](obj.css);
282283

283284
if (result) {
284285
// If transform returns a value, use that instead of the original css.

0 commit comments

Comments
 (0)
Please sign in to comment.