Skip to content

Commit

Permalink
fix: es3 compatibility (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Jul 29, 2019
1 parent dd32fad commit ae24ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/addStyles.js
Expand Up @@ -278,7 +278,8 @@ function addStyle(obj, options) {
result =
typeof options.transform === 'function'
? options.transform(obj.css)
: options.transform.default(obj.css);
: // ES3 compatibility
options.transform['default'](obj.css);

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

0 comments on commit ae24ec2

Please sign in to comment.