Mirror: Rollup plugin to automatically check the exports of a library for cjs-module-lexer compatibility.

Update initial condition to check output

Changed files
+2 -2
src
+2 -2
src/index.mjs
···
name: "cjs-check",
async renderChunk(code, chunk) {
-
if (opts.extension !== '.js') {
+
if (!filter(chunk.fileName)) {
return null;
-
} else if (!filter(chunk.fileName)) {
+
} else if (!/\.c?js$/g.test(chunk.fileName)) {
return null;
}