Skip to content

Commit 8a0507e

Browse files
authored
add swc-plugin-coverage-instrument paragraph (#97)
babel-plugin-istanbul does not work anymore with SWC enabled. swc-plugin-coverage-instrument package is a natural substitute
1 parent 050d739 commit 8a0507e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
A meteor package that allows you to get the statement, line, function and branch coverage of Meteor project and package.
44

5-
This package uses the [istanbuljs](https://github.com/istanbuljs/istanbuljs) set of packages to generate reports. Starting from Meteor 1.8, this package does not instrument your code to get coverage as you can let babel do it using the [babel plugin istanbul](https://github.com/istanbuljs/babel-plugin-istanbul).
5+
This package uses the [istanbuljs](https://github.com/istanbuljs/istanbuljs) set of packages to generate reports.
6+
7+
Starting from Meteor 1.8, this package does not instrument your code to get coverage:
8+
* For Meteor < 3.3, you can let babel do it using the [babel plugin istanbul](https://github.com/istanbuljs/babel-plugin-istanbul).
9+
* For Meteor = 3.3 with new Meteor bundler (SWC) disabled, [babel plugin istanbul](https://github.com/istanbuljs/babel-plugin-istanbul) is still relevant
10+
* For Meteor >= 3.3 with new Meteor bundler (SWC) enable, use [swc-plugin-coverage-instrument](https://github.com/kwonoj/swc-plugin-coverage-instrument)
611

712
It's a debug only package, so it does not affect your production build.
813

0 commit comments

Comments
 (0)