Search results
41 packages found
Access to __filename and __dirname within ECMAScript modules
Import .ts, .mjs, .cjs files across environments as JavaScript modules
provides native ESM import and globals mocking for unit tests
A solution to import files on the module and commonjs at the same time
Babel plugin to replace extension of file name written in import statement and dynamic import
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
- __dirname
- __filename
- commonjs
- deno
- deno-edition
- deno-entry
- denoland
- directory
- dirname
- ecmascript
- es2022
- es5
- esm
- export-default
- View more
A library to fix the default import interoperability issue in Node.js
Shim for `import.meta.resolve`
Add .js extension to each relative ESM import and export statement in JavaScript file
Add an extension to import specifiers that do not already have one, replace the extensions of those that do, or even rewrite specifiers entirely.
- babel
- plugin
- map
- export
- typescript
- extension
- commonjs
- extensions
- import
- transform
- esm
- add
- replace
- append
- View more
Make an ESM file explicit (.mjs), on all filenames and import statements.
cli to rename file extensions and rewrite imports for commonjs (cjs) and esm after typescript build
Babel plugin to replace extension of file name written in import statement and dynamic import
A babel plugin to fix the default import interoperability issue in Node.js
Babel plugin to replace extension of file name written in import statement and dynamic import
A helper command for babel-plugin-node-cjs-interop
An SWC plugin to fix the default import interoperability issue in Node.js
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
- require
- cache
- uncache
- uncached
- module
- fresh
- fetch
- all
- imports
- requires
- es imports
- cjs import
- cjs require
- mjs import
- View more
Allow importing of named exports from default-exporting (CJS/JSON) modules
A Babel plugin that adds file extensions to Babel runtime import specifiers and require paths for Node.js ESM compatibility.