[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

@@ -7,7 +7,7 @@ import { addHook } from "pirates";
import fs from "fs";
import path from "path";
import Module from "module";
import escapeRegExp from "./escape-regexp";
import escapeRegExp from "./escape-regexp.cjs";
const maps = {};
let transformOpts = {};