ricokahler / next-plugin-preval

Pre-evaluate async functions during builds and import them like JSON
MIT License
255 stars 12 forks source link

fix: css-loader `e.charCodeAt` is not a function #77

Closed ricokahler closed 2 years ago

ricokahler commented 2 years ago

The next/babel preset utilizes an isServer check to conditionally remove the certain loaders that are only compatible with the browser. This adds that check in the preval loader case and should fix #66

codecov[bot] commented 2 years ago

Codecov Report

Merging #77 (3b5b2fe) into alpha (3e7cef2) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            alpha      #77   +/-   ##
=======================================
  Coverage   92.70%   92.70%           
=======================================
  Files           2        2           
  Lines          96       96           
  Branches       32       32           
=======================================
  Hits           89       89           
  Misses          6        6           
  Partials        1        1           
Impacted Files Coverage Δ
src/loader.ts 94.00% <ø> (ø)

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 3e7cef2...3b5b2fe. Read the comment docs.