kentcdodds / babel-plugin-preval

🐣 Pre-evaluate code at build-time
https://npm.im/babel-plugin-preval
MIT License
1.36k stars 71 forks source link

feat: drop support for transpiling the code that is being prevaled #59

Closed kentcdodds closed 6 years ago

kentcdodds commented 6 years ago

What:

Code that's being prevaled will no longer be transpiled. You should either transpile it ahead of time or only write the code in a version of JavaScript that runs natively in the version of node you're running.

Why:

It cause way too many weird bugs that take a TON of time to track down.

How:

Checklist:

codecov[bot] commented 6 years ago

Codecov Report

Merging #59 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #59   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines         108    106    -2     
  Branches       22     22           
=====================================
- Hits          108    106    -2
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø) :arrow_up:
src/helpers.js 100% <100%> (ø) :arrow_up:

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 d8be253...7498a95. Read the comment docs.

kentcdodds commented 6 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: