stylify / packages

πŸ’Ž Monorepository for Stylify packages. Stylify uses CSS-like selectors to generate Extremely optimized utility-first CSS dynamically based on what you write πŸ’Ž.
https://stylifycss.com
MIT License
429 stars 9 forks source link

For some reason, after nuxt update, imports.path.url is undefined in cjs #121

Closed Machy8 closed 2 years ago

codecov[bot] commented 2 years ago

Codecov Report

Merging #121 (be2cc07) into master (518d9b0) will not change coverage. The diff coverage is n/a.

:exclamation: Current head be2cc07 differs from pull request most recent head d5fc2d6. Consider uploading reports for the commit d5fc2d6 to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #121   +/-   ##
=======================================
  Coverage   78.10%   78.10%           
=======================================
  Files          18       18           
  Lines        2685     2685           
  Branches      372      372           
=======================================
  Hits         2097     2097           
  Misses        584      584           
  Partials        4        4           

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update 518d9b0...d5fc2d6. Read the comment docs.

Machy8 commented 2 years ago

It is, because the esbuild doesn't allow import.meta.url in the generated file when the output format is cjs. Therefore there needs to be two checks, if the __dirname exists