[internal] Keep the .cjs extension when compiling source files (#12820)

* [internal] Keep the .cjs extension when compiling

* yarn
This commit is contained in:
Nicolò Ribaudo
2021-02-25 18:03:05 +01:00
committed by GitHub
parent 74db827c0a
commit b17231e1af
6 changed files with 19 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
import path from "path";
// $FlowIgnore
import escapeRegExp from "./helpers/escape-regexp";
import escapeRegExp from "./helpers/escape-regexp.cjs";
const sep = `\\${path.sep}`;
const endSep = `(?:${sep}|$)`;