UNPKG

check-esm

Version:

The module has JS functions to check all imports or required modules and check if the file is a ES Module or a CJS/ JS Module or Script

6 lines (5 loc) 217 B
import * as parser from "../index.js"; const path = import('path'); const someModuleCJS = import('./parser._isESCode.js'); const someModuleJS = import('./parser.imports.regex.mjs'); const acorn = import("chai");