egoist / vue-compile

Compile the blocks in Vue single-file components to use JS/CSS instead of Babel/Sass/Stylus.
MIT License
159 stars 10 forks source link

fix: wrongly tries to access default export when there is none #179

Closed mesqueeb closed 4 years ago

mesqueeb commented 4 years ago

fixes #180

I'm not sure how this bug snuck in, but I noticed when I couldn't compile, because

in compileStyles.ts it kept saying require(...) is not a function!

And when I double checked, I noticed that indeed, whatever require(...) was importing is an object with { compile } like so.

egoist commented 4 years ago

:tada: This PR is included in version 0.6.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: