0.2.2 • Published 3 years ago

@0x706b/ts-transform-fix-esm v0.2.2

Weekly downloads
146
License
MIT
Repository
github
Last release
3 years ago

ts-transform-fix-esm

Disclaimer

This transformer is experimental; use it at your own risk.

Description

Adds file extension and/or index to module specifiers and correctly requires commonjs modules in an ESM environment.

For example:

import { thing } from "commonjs/file";
import { anotherThing } from "esm/folder"

becomes

import { anotherThing } from "esm/folder/index.js";
import { createRequire as __createRequire } from "module";
const __require = __createRequire(import.meta.url);
const { thing } = require(commonjs/file);
0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago