marko-js / tags-api-preview

Preview the Marko 6 "Tags API" in Marko 5!
MIT License
22 stars 7 forks source link

fix: avoid using __dirname in compiler hooks #27

Closed DylanPiercey closed 2 years ago

DylanPiercey commented 2 years ago

Fix issue when loading the compiler hooks from native esm by avoiding __dirname.

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: bf887003de7a47ae527ad966f23d680e77fd1939

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------------- | ----- | | @marko/tags-api-preview | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 2 years ago

Codecov Report

Merging #27 (bf88700) into main (98d04ae) will decrease coverage by 0.05%. The diff coverage is 96.77%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
- Coverage   95.99%   95.93%   -0.06%     
==========================================
  Files          62       63       +1     
  Lines        1023     1033      +10     
  Branches      329      331       +2     
==========================================
+ Hits          982      991       +9     
  Misses         14       14              
- Partials       27       28       +1     
Impacted Files Coverage Δ
src/util/import-runtime.ts 80.00% <80.00%> (ø)
src/components/effect/translate.ts 100.00% <100.00%> (ø)
src/components/get/transform.ts 100.00% <100.00%> (ø)
src/components/lifecycle/translate.ts 100.00% <100.00%> (ø)
src/components/set/translate.ts 100.00% <100.00%> (ø)
src/components/style/transform.ts 97.82% <100.00%> (+0.09%) :arrow_up:
src/transform/cached-function/transform.ts 94.44% <100.00%> (+0.15%) :arrow_up:
src/transform/custom-tag-var.ts 94.44% <100.00%> (-0.30%) :arrow_down:
src/transform/hoist-tag-vars/transform.ts 100.00% <100.00%> (ø)
src/transform/native-tag-var/transform.ts 100.00% <100.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.