Add cjs as a default extension (#11498)

This commit is contained in:
Julian Grinblat
2021-02-22 01:56:15 +09:00
committed by GitHub
parent 774c526390
commit d1d6ee6dc2
2 changed files with 2 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ export const DEFAULT_EXTENSIONS = Object.freeze([
".es6",
".es",
".mjs",
".cjs",
]);
// For easier backward-compatibility, provide an API like the one we exposed in Babel 6.