interop-test

ESM-CJS interop test

This project is maintained by andrewbranch

ESM-CJS Interop Test

View on GitHub

This project is forked from sokra/interop-test with the following changes:

Table of Contents

Meta-analysis

Synthesizing default exports for CJS modules

In Node, a default import of a CommonJS module always links to the module.exports object. In other words, a CJS module imported from ESM looks like [Module: null prototype] { default: (module.exports) }. This is sometimes called “synthesizing” a default export. Traditionally, bundlers and ESM-to-CJS transpilers have instead linked default imports to the module.exports.default property when there is also an exports.__esModule property (indicating that the module was transpiled from ESM). In other words, they selectively disable default export synthesis, whereas Node always enables it. This creates an inconsistency between how some imports behave in Node and how they behave in bundlers. Consequently, esbuild and Webpack adopt Node’s behavior and always synthesize default exports in files that Node would recognize as ESM—that is, files with an .mjs extension or "type": "module" in package.json. (So… they selectively disable their selective disabling of default export synthesis?)

This practice is Probably A Good Idea, but if it’s applied based on file extensions, it must be done for the equivalent TypeScript file extensions as well in order for TypeScript to reason about the behavior. My priorities are ordered as follows:

  1. Consistency between JS and TS variants
  2. Consistency between all bundlers (lol)
  3. Default export synthesis for CJS modules imported from .mjs, .mts, and "type": "module"-scoped .js and .ts files for compatibility with Node
  4. No default export synthesis for CJS modules with __esModule when imported from files that are not .mjs, .mts, or "type": "module"-scoped .js and .ts files

The following table summarizes data that can be found in the default-export-esModule.js table, and grades each bundler’s behavior against these priorities.

Legend  
✅ / ❌ Satisfies / violates priority (3): Default synthesis in Node ESM files
👍 / 👎 Satisfies / violates priority (4): __esModule disables synthesis in non-Node-ESM files
An error or totally unexpected behavior prohibits analysis
💙 Satisfies priority (1): TS consistency
🌟 Perfect score
  mjs js-module mts ts-module js ts Grade
bun ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized 👍 Not synthesized 👍 Not synthesized 💙
babel ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized 👍 Not synthesized 👍 Not synthesized 💙
webpack ✅ Synthesized ✅ Synthesized ❌ Not synthesized ❌ Not synthesized 👍 Not synthesized 👍 Not synthesized  
rollup ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized 👍 Not synthesized 👍 Not synthesized 💙
esbuild ✅ Synthesized ✅ Synthesized ✅ Synthesized ✅ Synthesized 👍 Not synthesized 👍 Not synthesized 💙 🌟
parcel ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized 👍 Not synthesized 👍 Not synthesized 💙
vite ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized ❌ Not synthesized 👍 Not synthesized 👍 Not synthesized 💙

Results by runtime

node (.mjs)

Versions:

node (mjs) import x

import().default
x = require()

await import() === require()
import * as x; x === await import()
default-export-esModule.js { [__esModule], default } runtime error true
default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error runtime error syntax error
default-export-esm.mjs

tla-esm.mjs
'default' runtime error true
default-export.js { default } runtime error true
single-object-export.js { named } runtime error true
single-object-with-default-export.js { named, default } runtime error true

node (.js)

Versions:

node (js) import x

import().default

import * as x; x === await import()
x = require() await import() === require()
default-export-esModule.js syntax error { [__esModule], default } false
default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error syntax error syntax error
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed require(esm) not allowed
default-export.js syntax error { default } false
single-object-export.js syntax error { named } false
single-object-with-default-export.js syntax error { named, default } false

node (.js with "type": "module")

Versions:

node (js-module) import x

import().default
x = require()

await import() === require()
import * as x; x === await import()
default-export-esModule.js { [__esModule], default } runtime error true
default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error runtime error syntax error
default-export-esm.mjs

tla-esm.mjs
'default' runtime error true
default-export.js { default } runtime error true
single-object-export.js { named } runtime error true
single-object-with-default-export.js { named, default } runtime error true

bun (.mjs)

Versions:

bun (mjs) import x import().default x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule] } false true
default-export.js { default } { default } { default } false true
single-object-export.js { named } { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } { named, default } false true
tla-esModule.js syntax error runtime error syntax error runtime error runtime error
tla-esm.js

tla-esm.mjs
'default' 'default' type error false true

bun (.js)

Versions:

bun (js) import x import().default x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule] } false true
default-export.js { default } { default } { default } false true
single-object-export.js { named } { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } { named, default } false true
tla-esModule.js syntax error runtime error syntax error runtime error runtime error
tla-esm.js

tla-esm.mjs
'default' 'default' type error false true

bun (.js with "type": "module")

Versions:

bun (js-module) import x import().default x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule] } false true
default-export.js { default } { default } { default } false true
single-object-export.js { named } { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } { named, default } false true
tla-esModule.js syntax error runtime error syntax error runtime error runtime error
tla-esm.js

tla-esm.mjs
'default' 'default' type error false true

bun (.mts)

Versions:

bun (mts) import x import().default x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule] } false true
default-export.js { default } { default } { default } false true
single-object-export.js { named } { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } { named, default } false true
tla-esModule.js syntax error runtime error syntax error runtime error runtime error
tla-esm.js

tla-esm.mjs
'default' 'default' type error false true

bun (.ts)

Versions:

bun (ts) import x import().default x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule] } false true
default-export.js { default } { default } { default } false true
single-object-export.js { named } { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } { named, default } false true
tla-esModule.js syntax error runtime error syntax error runtime error runtime error
tla-esm.js

tla-esm.mjs
'default' 'default' type error false true

bun (.ts with "type": "module")

Versions:

bun (ts-module) import x import().default x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule] } false true
default-export.js { default } { default } { default } false true
single-object-export.js { named } { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } { named, default } false true
tla-esModule.js syntax error runtime error syntax error runtime error runtime error
tla-esm.js

tla-esm.mjs
'default' 'default' type error false true

babel (.mjs)

Versions:

babel (mjs) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true

babel (.js)

Versions:

babel (js) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true

babel (.js with "type": "module")

Versions:

babel (js-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true

babel (.mts)

Versions:

babel (mts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true

babel (.ts)

Versions:

babel (ts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true

babel (.ts with "type": "module")

Versions:

babel (ts-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true

webpack (.mjs)

Versions:

webpack (mjs) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js { [__esModule], default } { [__esModule], default } false false
default-export-esm.js

tla-esm.js
'default' syntax error syntax error true
default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed require(esm) not allowed true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js compilation error syntax error compilation error compilation error

webpack (.js)

Versions:

webpack (js) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G], [Module] } true true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js compilation error compilation error compilation error compilation error
tla-esm.js

tla-esm.mjs
'default' Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } false true

webpack (.js with "type": "module")

Versions:

webpack (js-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js { [__esModule], default } { [__esModule], default } false false
default-export-esm.js

tla-esm.js
'default' syntax error syntax error true
default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed require(esm) not allowed true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js compilation error syntax error compilation error compilation error

webpack (.mts)

Versions:

webpack (mts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G], [Module] } true true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js compilation error compilation error compilation error compilation error
tla-esm.js

tla-esm.mjs
'default' Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } false true

webpack (.ts)

Versions:

webpack (ts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G], [Module] } true true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js compilation error compilation error compilation error compilation error
tla-esm.js

tla-esm.mjs
'default' Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } false true

webpack (.ts with "type": "module")

Versions:

webpack (ts-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } true true
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G], [Module] } true true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js compilation error compilation error compilation error compilation error
tla-esm.js

tla-esm.mjs
'default' Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } false true

rollup (.mjs)

Versions:

rollup (mjs) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } false true
default-export-esm.js 'default' syntax error syntax error true
default-export-esm.mjs 'default' require(esm) not allowed require(esm) not allowed true
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true
tla-esModule.js

tla-esm.js
compilation error syntax error compilation error compilation error
tla-esm.mjs compilation error require(esm) not allowed compilation error compilation error

rollup (.js)

Versions:

rollup (js) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

rollup (.js with "type": "module")

Versions:

rollup (js-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } false true
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

rollup (.mts)

Versions:

rollup (mts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } false true
default-export-esm.js 'default' syntax error syntax error true
default-export-esm.mjs 'default' require(esm) not allowed require(esm) not allowed true
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true
tla-esModule.js

tla-esm.js
compilation error syntax error compilation error compilation error
tla-esm.mjs compilation error require(esm) not allowed compilation error compilation error

rollup (.ts)

Versions:

rollup (ts) import x import().default x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' 'default' { [__esModule], default } false true
default-export-esm.js syntax error 'default' syntax error syntax error syntax error
default-export-esm.mjs require(esm) not allowed 'default' require(esm) not allowed require(esm) not allowed require(esm) not allowed
default-export.js { default } { default } { default } false false
single-object-export.js { named } { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } { named, default } false false
tla-esModule.js

tla-esm.js
syntax error compilation error syntax error compilation error compilation error
tla-esm.mjs require(esm) not allowed compilation error require(esm) not allowed compilation error compilation error

rollup (.ts with "type": "module")

Versions:

rollup (ts-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } false true
default-export-esm.js 'default' syntax error syntax error true
default-export-esm.mjs 'default' require(esm) not allowed require(esm) not allowed true
default-export.js { default } { default } false true
single-object-export.js { named } { named } false true
single-object-with-default-export.js { named, default } { named, default } false true
tla-esModule.js

tla-esm.js
compilation error syntax error compilation error compilation error
tla-esm.mjs compilation error require(esm) not allowed compilation error compilation error

esbuild (.mjs)

Versions:

esbuild (mjs) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js { [__esModule], default } { [__esModule], default } false false
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

esbuild (.js)

Versions:

esbuild (js) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } false false
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

esbuild (.js with "type": "module")

Versions:

esbuild (js-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js { [__esModule], default } { [__esModule], default } false false
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

esbuild (.mts)

Versions:

esbuild (mts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js { [__esModule], default } { [__esModule], default } false false
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

esbuild (.ts)

Versions:

esbuild (ts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js 'default' { [__esModule], default } false false
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

esbuild (.ts with "type": "module")

Versions:

esbuild (ts-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js { [__esModule], default } { [__esModule], default } false false
default-export-esm.js

default-export-esm.mjs
'default' { [__esModule], default: [G] } false true
default-export.js { default } { default } false false
single-object-export.js { named } { named } false false
single-object-with-default-export.js { named, default } { named, default } false false
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error compilation error compilation error compilation error

parcel (.mjs)

Versions:

parcel (mjs) import x import().default x = require() await import() === require()

import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule], default } true
default-export.js { default } 'default' { default } true
single-object-export.js { named } undefined { named } true
single-object-with-default-export.js { named, default } 'default' { named, default } true
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error

parcel (.js)

Versions:

parcel (js) import x import().default x = require() await import() === require()

import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule], default } true
default-export.js { default } 'default' { default } true
single-object-export.js { named } undefined { named } true
single-object-with-default-export.js { named, default } 'default' { named, default } true
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error

parcel (.js with "type": "module")

Versions:

parcel (js-module) import x import().default x = require() await import() === require()

import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule], default } true
default-export.js { default } 'default' { default } true
single-object-export.js { named } undefined { named } true
single-object-with-default-export.js { named, default } 'default' { named, default } true
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error

parcel (.mts)

Versions:

parcel (mts) import x import().default x = require() await import() === require()

import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule], default } true
default-export.js { default } 'default' { default } true
single-object-export.js { named } undefined { named } true
single-object-with-default-export.js { named, default } 'default' { named, default } true
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error

parcel (.ts)

Versions:

parcel (ts) import x import().default x = require() await import() === require()

import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule], default } true
default-export.js { default } 'default' { default } true
single-object-export.js { named } undefined { named } true
single-object-with-default-export.js { named, default } 'default' { named, default } true
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error

parcel (.ts with "type": "module")

Versions:

parcel (ts-module) import x import().default x = require() await import() === require()

import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' 'default' { [__esModule], default } true
default-export.js { default } 'default' { default } true
single-object-export.js { named } undefined { named } true
single-object-with-default-export.js { named, default } 'default' { named, default } true
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error syntax error syntax error syntax error

vite (.mjs)

Versions:

vite (mjs) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' not fully bundled not fully bundled true
default-export.js { default } not fully bundled not fully bundled true
single-object-export.js { named } not fully bundled not fully bundled true
single-object-with-default-export.js { named, default } not fully bundled not fully bundled true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled compilation error compilation error

vite (.js)

Versions:

vite (js) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' not fully bundled not fully bundled true
default-export.js { default } not fully bundled not fully bundled true
single-object-export.js { named } not fully bundled not fully bundled true
single-object-with-default-export.js { named, default } not fully bundled not fully bundled true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled compilation error compilation error

vite (.js with "type": "module")

Versions:

vite (js-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' not fully bundled not fully bundled true
default-export.js { default } not fully bundled not fully bundled true
single-object-export.js { named } not fully bundled not fully bundled true
single-object-with-default-export.js { named, default } not fully bundled not fully bundled true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled compilation error compilation error

vite (.mts)

Versions:

vite (mts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' not fully bundled not fully bundled true
default-export.js { default } not fully bundled not fully bundled true
single-object-export.js { named } not fully bundled not fully bundled true
single-object-with-default-export.js { named, default } not fully bundled not fully bundled true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled compilation error compilation error

vite (.ts)

Versions:

vite (ts) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' not fully bundled not fully bundled true
default-export.js { default } not fully bundled not fully bundled true
single-object-export.js { named } not fully bundled not fully bundled true
single-object-with-default-export.js { named, default } not fully bundled not fully bundled true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled compilation error compilation error

vite (.ts with "type": "module")

Versions:

vite (ts-module) import x

import().default
x = require() await import() === require() import * as x; x === await import()
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
'default' not fully bundled not fully bundled true
default-export.js { default } not fully bundled not fully bundled true
single-object-export.js { named } not fully bundled not fully bundled true
single-object-with-default-export.js { named, default } not fully bundled not fully bundled true
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled compilation error compilation error

Results by exporting module

default-export.js

exports.default = "default";
default-export.js node (mjs, js-module) node (js) bun

babel

rollup (mjs, js, js-module, mts, ts-module)
webpack

rollup (ts)

esbuild
parcel vite
import x { default } syntax error { default } { default } { default } { default }
import().default { default } syntax error { default } { default } 'default' { default }
x = require() runtime error { default } { default } { default } { default } not fully bundled
await import() === require() runtime error false false false true not fully bundled
import * as x; x === await import() true syntax error true false true true

default-export-esModule.js

Object.defineProperty(exports, "__esModule", { value: true });
exports.default = "default";
default-export-esModule.js node (mjs, js-module) node (js) bun

rollup
babel

webpack (js, mts, ts, ts-module)

parcel
webpack (mjs, js-module)

esbuild (mjs, js-module, mts, ts-module)
esbuild (js, ts) vite
import x

import().default
{ [__esModule], default } syntax error 'default' 'default' { [__esModule], default } 'default' 'default'
x = require() runtime error { [__esModule], default } { [__esModule], default } { [__esModule], default } { [__esModule], default } { [__esModule], default } not fully bundled
await import() === require() runtime error false false true false false not fully bundled
import * as x; x === await import() true syntax error true true false false true

default-export-esm.js

export default "default";
default-export-esm.js node (mjs, js-module) node (js)

babel
bun webpack (mjs, js-module)

rollup (mjs, mts, ts-module)
webpack (js, mts, ts, ts-module) rollup (js, js-module)

esbuild
rollup (ts) parcel vite
import x syntax error syntax error 'default' 'default' 'default' 'default' syntax error 'default' 'default'
import().default syntax error syntax error 'default' 'default' 'default' 'default' 'default' 'default' 'default'
x = require() runtime error syntax error { [__esModule] } syntax error { [__esModule], default: [G], [Module] } { [__esModule], default: [G] } syntax error { [__esModule], default } not fully bundled
await import() === require() runtime error syntax error false syntax error true false syntax error true not fully bundled
import * as x; x === await import() syntax error syntax error true true true true syntax error true true

default-export-esm.mjs

export default "default";
default-export-esm.mjs node (mjs, js-module) node (js) bun babel webpack (mjs, js-module)

rollup (mjs, mts, ts-module)
webpack (js, mts, ts, ts-module) rollup (js, js-module)

esbuild
rollup (ts) parcel vite
import x 'default' syntax error 'default' syntax error 'default' 'default' 'default' require(esm) not allowed 'default' 'default'
import().default 'default' syntax error 'default' syntax error 'default' 'default' 'default' 'default' 'default' 'default'
x = require() runtime error require(esm) not allowed { [__esModule] } syntax error require(esm) not allowed { [__esModule], default: [G], [Module] } { [__esModule], default: [G] } require(esm) not allowed { [__esModule], default } not fully bundled
await import() === require() runtime error require(esm) not allowed false syntax error require(esm) not allowed true false require(esm) not allowed true not fully bundled
import * as x; x === await import() true syntax error true syntax error true true true require(esm) not allowed true true

single-object-export.js

module.exports = {
  named: "named",
};
single-object-export.js node (mjs, js-module) node (js) bun

babel

rollup (mjs, js, js-module, mts, ts-module)
webpack

rollup (ts)

esbuild
parcel vite
import x { named } syntax error { named } { named } { named } { named }
import().default { named } syntax error { named } { named } undefined { named }
x = require() runtime error { named } { named } { named } { named } not fully bundled
await import() === require() runtime error false false false true not fully bundled
import * as x; x === await import() true syntax error true false true true

single-object-with-default-export.js

module.exports = {
  named: "named",
  default: "default",
};
single-object-with-default-export.js node (mjs, js-module) node (js) bun

babel

rollup (mjs, js, js-module, mts, ts-module)
webpack

rollup (ts)

esbuild
parcel vite
import x { named, default } syntax error { named, default } { named, default } { named, default } { named, default }
import().default { named, default } syntax error { named, default } { named, default } 'default' { named, default }
x = require() runtime error { named, default } { named, default } { named, default } { named, default } not fully bundled
await import() === require() runtime error false false false true not fully bundled
import * as x; x === await import() true syntax error true false true true

tla-esModule.js

Object.defineProperty(exports, "__esModule", { value: true });
await Promise.resolve();
exports.named = "named";
exports.default = "default";
tla-esModule.js node (mjs, js-module) node (js)

babel

parcel
bun webpack (mjs, js-module)

rollup (mjs, mts, ts-module)
webpack (js, mts, ts, ts-module)

rollup (js, js-module)

esbuild
rollup (ts) vite
import x syntax error syntax error syntax error compilation error compilation error syntax error compilation error
import().default

import * as x; x === await import()
syntax error syntax error runtime error compilation error compilation error compilation error compilation error
x = require() runtime error syntax error syntax error syntax error compilation error syntax error not fully bundled
await import() === require() runtime error syntax error runtime error compilation error compilation error compilation error compilation error

tla-esm.js

await Promise.resolve();
export const named = "named";
export default "default";
tla-esm.js node (mjs, js-module) node (js)

babel

parcel
bun webpack (mjs, js-module) webpack (js, mts, ts, ts-module) rollup (mjs, mts, ts-module) rollup (js, js-module)

esbuild
rollup (ts) vite
import x syntax error syntax error 'default' 'default' 'default' compilation error compilation error syntax error compilation error
import().default syntax error syntax error 'default' 'default' 'default' compilation error compilation error compilation error compilation error
x = require() runtime error syntax error type error syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error compilation error syntax error not fully bundled
await import() === require() runtime error syntax error false syntax error false compilation error compilation error compilation error compilation error
import * as x; x === await import() syntax error syntax error true true true compilation error compilation error compilation error compilation error

tla-esm.mjs

await Promise.resolve();
export const named = "named";
export default "default";
tla-esm.mjs node (mjs, js-module) node (js) bun babel

parcel
webpack (mjs, js-module) webpack (js, mts, ts, ts-module) rollup (mjs, mts, ts-module) rollup (js, js-module)

esbuild
rollup (ts) vite
import x 'default' syntax error 'default' syntax error 'default' 'default' compilation error compilation error require(esm) not allowed compilation error
import().default 'default' syntax error 'default' syntax error 'default' 'default' compilation error compilation error compilation error compilation error
x = require() runtime error require(esm) not allowed type error syntax error require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed compilation error require(esm) not allowed not fully bundled
await import() === require() runtime error require(esm) not allowed false syntax error require(esm) not allowed false compilation error compilation error compilation error compilation error
import * as x; x === await import() true syntax error true syntax error true true compilation error compilation error compilation error compilation error

Results by import test case

import x

import x node (mjs, js-module) node (js) bun babel webpack (mjs, js-module) webpack (js, mts, ts, ts-module) rollup (mjs, js, js-module, mts, ts-module)

esbuild (js, ts)

vite
rollup (ts) esbuild (mjs, js-module, mts, ts-module) parcel
default-export.js { default } syntax error { default } { default } { default } { default } { default } { default } { default } { default }
default-export-esModule.js { [__esModule], default } syntax error 'default' 'default' { [__esModule], default } 'default' 'default' 'default' { [__esModule], default } 'default'
default-export-esm.js syntax error syntax error 'default' syntax error 'default' 'default' 'default' syntax error 'default' 'default'
default-export-esm.mjs 'default' syntax error 'default' syntax error 'default' 'default' 'default' require(esm) not allowed 'default' 'default'
single-object-export.js { named } syntax error { named } { named } { named } { named } { named } { named } { named } { named }
single-object-with-default-export.js { named, default } syntax error { named, default } { named, default } { named, default } { named, default } { named, default } { named, default } { named, default } { named, default }
tla-esModule.js syntax error syntax error syntax error syntax error compilation error compilation error compilation error syntax error compilation error syntax error
tla-esm.js syntax error syntax error 'default' syntax error 'default' 'default' compilation error syntax error compilation error syntax error
tla-esm.mjs 'default' syntax error 'default' syntax error 'default' 'default' compilation error require(esm) not allowed compilation error syntax error

import().default

import().default node (mjs, js-module) node (js) bun babel webpack (mjs, js-module) webpack (js, mts, ts, ts-module) rollup

esbuild (js, ts)

vite
esbuild (mjs, js-module, mts, ts-module) parcel
default-export.js { default } syntax error { default } { default } { default } { default } { default } { default } 'default'
default-export-esModule.js { [__esModule], default } syntax error 'default' 'default' { [__esModule], default } 'default' 'default' { [__esModule], default } 'default'
default-export-esm.js syntax error syntax error 'default' syntax error 'default' 'default' 'default' 'default' 'default'
default-export-esm.mjs 'default' syntax error 'default' syntax error 'default' 'default' 'default' 'default' 'default'
single-object-export.js { named } syntax error { named } { named } { named } { named } { named } { named } undefined
single-object-with-default-export.js { named, default } syntax error { named, default } { named, default } { named, default } { named, default } { named, default } { named, default } 'default'
tla-esModule.js syntax error syntax error runtime error syntax error compilation error compilation error compilation error compilation error syntax error
tla-esm.js syntax error syntax error 'default' syntax error 'default' 'default' compilation error compilation error syntax error
tla-esm.mjs 'default' syntax error 'default' syntax error 'default' 'default' compilation error compilation error syntax error

x = require()

x = require() node (mjs, js-module) node (js)

webpack (mjs, js-module)

rollup (mjs, mts, ts, ts-module)
bun babel webpack (js, mts, ts, ts-module) rollup (js, js-module)

esbuild
parcel vite
default-export.js runtime error { default } { default } { default } { default } { default } { default } not fully bundled
default-export-esModule.js runtime error { [__esModule], default } { [__esModule], default } { [__esModule], default } { [__esModule], default } { [__esModule], default } { [__esModule], default } not fully bundled
default-export-esm.js runtime error syntax error { [__esModule] } syntax error { [__esModule], default: [G], [Module] } { [__esModule], default: [G] } { [__esModule], default } not fully bundled
default-export-esm.mjs runtime error require(esm) not allowed { [__esModule] } syntax error { [__esModule], default: [G], [Module] } { [__esModule], default: [G] } { [__esModule], default } not fully bundled
single-object-export.js runtime error { named } { named } { named } { named } { named } { named } not fully bundled
single-object-with-default-export.js runtime error { named, default } { named, default } { named, default } { named, default } { named, default } { named, default } not fully bundled
tla-esModule.js runtime error syntax error syntax error syntax error compilation error compilation error syntax error not fully bundled
tla-esm.js runtime error syntax error type error syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error syntax error not fully bundled
tla-esm.mjs runtime error require(esm) not allowed type error syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error syntax error not fully bundled

await import() === require()

await import() === require() node (mjs, js-module) node (js) bun babel webpack (mjs, js-module) webpack (js, mts, ts, ts-module) rollup (mjs, mts, ts, ts-module) rollup (js, js-module)

esbuild
parcel vite
default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false false false false false false false true not fully bundled
default-export-esModule.js runtime error false false true false true false false true not fully bundled
default-export-esm.js runtime error syntax error false syntax error syntax error true syntax error false true not fully bundled
default-export-esm.mjs runtime error require(esm) not allowed false syntax error require(esm) not allowed true require(esm) not allowed false true not fully bundled
tla-esModule.js runtime error syntax error runtime error syntax error compilation error compilation error compilation error compilation error syntax error compilation error
tla-esm.js runtime error syntax error false syntax error syntax error false compilation error compilation error syntax error compilation error
tla-esm.mjs runtime error require(esm) not allowed false syntax error require(esm) not allowed false compilation error compilation error syntax error compilation error

import * as x; x === await import()

import * as x; x === await import() node (mjs, js-module) node (js) bun babel webpack (mjs, js-module) webpack (js, mts, ts, ts-module) rollup (mjs, js, js-module, mts, ts-module)

vite
rollup (ts) esbuild parcel
default-export.js

single-object-export.js

single-object-with-default-export.js
true syntax error true true false false true false false true
default-export-esModule.js true syntax error true true false true true true false true
default-export-esm.js syntax error syntax error true syntax error true true true syntax error true true
default-export-esm.mjs true syntax error true syntax error true true true require(esm) not allowed true true
tla-esModule.js syntax error syntax error runtime error syntax error compilation error compilation error compilation error compilation error compilation error syntax error
tla-esm.js syntax error syntax error true syntax error true true compilation error compilation error compilation error syntax error
tla-esm.mjs true syntax error true syntax error true true compilation error compilation error compilation error syntax error

Differences

  node (mjs) node (js) node (js-module) bun (mjs) bun (js) bun (js-module) bun (mts) bun (ts) bun (ts-module) babel (mjs) babel (js) babel (js-module) babel (mts) babel (ts) babel (ts-module) webpack (mjs) webpack (js) webpack (js-module) webpack (mts) webpack (ts) webpack (ts-module) rollup (mjs) rollup (js) rollup (js-module) rollup (mts) rollup (ts) rollup (ts-module) esbuild (mjs) esbuild (js) esbuild (js-module) esbuild (mts) esbuild (ts) esbuild (ts-module) parcel (mjs) parcel (js) parcel (js-module) parcel (mts) parcel (ts) parcel (ts-module) vite (mjs) vite (js) vite (js-module) vite (mts) vite (ts) vite (ts-module)
node (mjs) - ❗️ 13 ✅ identical ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 14 ❗️ 14 💥 16 ❗️ 13 ❗️ 13 💥 16 💥 18 💥 16 ❗️ 13 ❗️ 14 ❗️ 13 ❗️ 13 ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 14 ❗️ 14 ❗️ 14 ❗️ 14 ❗️ 14 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
node (js) ❗️ 13 - ❗️ 13 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 8 💥 16 ⚠️ 8 💥 16 💥 16 💥 16 ⚠️ 8 ❗️ 12 ❗️ 12 ⚠️ 8 ❗️ 12 ⚠️ 8 ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 💥 17 💥 17 💥 17 💥 17 💥 17 💥 17
node (js-module) ✅ identical ❗️ 13 - ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 12 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 14 ❗️ 14 💥 16 ❗️ 13 ❗️ 13 💥 16 💥 18 💥 16 ❗️ 13 ❗️ 14 ❗️ 13 ❗️ 13 ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 14 ❗️ 14 ❗️ 14 ❗️ 14 ❗️ 14 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
bun (mjs) ❗️ 12 ❗️ 12 ❗️ 12 - ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 6 ❗️ 10 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ⚠️ 7 ❗️ 11 💥 15 ❗️ 11 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
bun (js) ❗️ 12 ❗️ 12 ❗️ 12 ✅ identical - ✅ identical ✅ identical ✅ identical ✅ identical ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 6 ❗️ 10 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ⚠️ 7 ❗️ 11 💥 15 ❗️ 11 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
bun (js-module) ❗️ 12 ❗️ 12 ❗️ 12 ✅ identical ✅ identical - ✅ identical ✅ identical ✅ identical ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 6 ❗️ 10 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ⚠️ 7 ❗️ 11 💥 15 ❗️ 11 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
bun (mts) ❗️ 12 ❗️ 12 ❗️ 12 ✅ identical ✅ identical ✅ identical - ✅ identical ✅ identical ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 6 ❗️ 10 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ⚠️ 7 ❗️ 11 💥 15 ❗️ 11 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
bun (ts) ❗️ 12 ❗️ 12 ❗️ 12 ✅ identical ✅ identical ✅ identical ✅ identical - ✅ identical ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 6 ❗️ 10 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ⚠️ 7 ❗️ 11 💥 15 ❗️ 11 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
bun (ts-module) ❗️ 12 ❗️ 12 ❗️ 12 ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical - ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 6 ❗️ 10 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ⚠️ 7 ❗️ 11 💥 15 ❗️ 11 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
babel (mjs) ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 - ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11
babel (js) ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ✅ identical - ✅ identical ✅ identical ✅ identical ✅ identical ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11
babel (js-module) ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ✅ identical ✅ identical - ✅ identical ✅ identical ✅ identical ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11
babel (mts) ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ✅ identical ✅ identical ✅ identical - ✅ identical ✅ identical ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11
babel (ts) ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ✅ identical ✅ identical ✅ identical ✅ identical - ✅ identical ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11
babel (ts-module) ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical - ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11
webpack (mjs) ❗️ 13 ⚠️ 8 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 - ❗️ 11 ✅ identical ❗️ 11 ❗️ 11 ❗️ 11 ⚠️ 6 ❗️ 11 ❗️ 11 ⚠️ 6 ❗️ 11 ⚠️ 6 ⚠️ 9 ❗️ 10 ⚠️ 9 ⚠️ 9 ❗️ 10 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 💥 15 💥 15 💥 15 💥 15 💥 15 💥 15
webpack (js) ❗️ 14 💥 16 ❗️ 14 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ❗️ 11 - ❗️ 11 ✅ identical ✅ identical ✅ identical ❗️ 12 ⚠️ 7 ⚠️ 7 ❗️ 12 ❗️ 13 ❗️ 12 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
webpack (js-module) ❗️ 13 ⚠️ 8 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ✅ identical ❗️ 11 - ❗️ 11 ❗️ 11 ❗️ 11 ⚠️ 6 ❗️ 11 ❗️ 11 ⚠️ 6 ❗️ 11 ⚠️ 6 ⚠️ 9 ❗️ 10 ⚠️ 9 ⚠️ 9 ❗️ 10 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 💥 15 💥 15 💥 15 💥 15 💥 15 💥 15
webpack (mts) ❗️ 14 💥 16 ❗️ 14 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ❗️ 11 ✅ identical ❗️ 11 - ✅ identical ✅ identical ❗️ 12 ⚠️ 7 ⚠️ 7 ❗️ 12 ❗️ 13 ❗️ 12 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
webpack (ts) ❗️ 14 💥 16 ❗️ 14 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ❗️ 11 ✅ identical ❗️ 11 ✅ identical - ✅ identical ❗️ 12 ⚠️ 7 ⚠️ 7 ❗️ 12 ❗️ 13 ❗️ 12 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
webpack (ts-module) ❗️ 14 💥 16 ❗️ 14 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ❗️ 11 ✅ identical ❗️ 11 ✅ identical ✅ identical - ❗️ 12 ⚠️ 7 ⚠️ 7 ❗️ 12 ❗️ 13 ❗️ 12 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13
rollup (mjs) 💥 16 ⚠️ 8 💥 16 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 12 ⚠️ 6 ❗️ 12 ❗️ 12 ❗️ 12 - ⚠️ 6 ⚠️ 6 ✅ identical ⚠️ 7 ✅ identical ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
rollup (js) ❗️ 13 ❗️ 12 ❗️ 13 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ❗️ 11 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 6 - ✅ identical ⚠️ 6 ❗️ 11 ⚠️ 6 🤏 2 🤏 1 🤏 2 🤏 2 🤏 1 🤏 2 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7
rollup (js-module) ❗️ 13 ❗️ 12 ❗️ 13 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ⚠️ 7 ❗️ 11 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 6 ✅ identical - ⚠️ 6 ❗️ 11 ⚠️ 6 🤏 2 🤏 1 🤏 2 🤏 2 🤏 1 🤏 2 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7
rollup (mts) 💥 16 ⚠️ 8 💥 16 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 12 ⚠️ 6 ❗️ 12 ❗️ 12 ❗️ 12 ✅ identical ⚠️ 6 ⚠️ 6 - ⚠️ 7 ✅ identical ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
rollup (ts) 💥 18 ❗️ 12 💥 18 💥 15 💥 15 💥 15 💥 15 💥 15 💥 15 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 11 ❗️ 13 ❗️ 11 ❗️ 13 ❗️ 13 ❗️ 13 ⚠️ 7 ❗️ 11 ❗️ 11 ⚠️ 7 - ⚠️ 7 ❗️ 12 ❗️ 11 ❗️ 12 ❗️ 12 ❗️ 11 ❗️ 12 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 💥 16 💥 16 💥 16 💥 16 💥 16 💥 16
rollup (ts-module) 💥 16 ⚠️ 8 💥 16 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ⚠️ 6 ❗️ 12 ⚠️ 6 ❗️ 12 ❗️ 12 ❗️ 12 ✅ identical ⚠️ 6 ⚠️ 6 ✅ identical ⚠️ 7 - ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
esbuild (mjs) ❗️ 13 ❗️ 14 ❗️ 13 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 🤏 2 🤏 2 ⚠️ 8 ❗️ 12 ⚠️ 8 - 🤏 1 ✅ identical ✅ identical 🤏 1 ✅ identical ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
esbuild (js) ❗️ 14 ❗️ 13 ❗️ 14 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 🤏 1 🤏 1 ⚠️ 7 ❗️ 11 ⚠️ 7 🤏 1 - 🤏 1 🤏 1 ✅ identical 🤏 1 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8
esbuild (js-module) ❗️ 13 ❗️ 14 ❗️ 13 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 🤏 2 🤏 2 ⚠️ 8 ❗️ 12 ⚠️ 8 ✅ identical 🤏 1 - ✅ identical 🤏 1 ✅ identical ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
esbuild (mts) ❗️ 13 ❗️ 14 ❗️ 13 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 🤏 2 🤏 2 ⚠️ 8 ❗️ 12 ⚠️ 8 ✅ identical 🤏 1 ✅ identical - 🤏 1 ✅ identical ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
esbuild (ts) ❗️ 14 ❗️ 13 ❗️ 14 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 10 ⚠️ 7 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 🤏 1 🤏 1 ⚠️ 7 ❗️ 11 ⚠️ 7 🤏 1 ✅ identical 🤏 1 🤏 1 - 🤏 1 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8
esbuild (ts-module) ❗️ 13 ❗️ 14 ❗️ 13 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 🤏 2 🤏 2 ⚠️ 8 ❗️ 12 ⚠️ 8 ✅ identical 🤏 1 ✅ identical ✅ identical 🤏 1 - ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9 ⚠️ 9
parcel (mjs) ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 13 ❗️ 10 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 6 ⚠️ 6 ❗️ 10 ❗️ 13 ❗️ 10 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 - ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10
parcel (js) ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 13 ❗️ 10 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 6 ⚠️ 6 ❗️ 10 ❗️ 13 ❗️ 10 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ✅ identical - ✅ identical ✅ identical ✅ identical ✅ identical ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10
parcel (js-module) ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 13 ❗️ 10 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 6 ⚠️ 6 ❗️ 10 ❗️ 13 ❗️ 10 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ✅ identical ✅ identical - ✅ identical ✅ identical ✅ identical ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10
parcel (mts) ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 13 ❗️ 10 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 6 ⚠️ 6 ❗️ 10 ❗️ 13 ❗️ 10 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ✅ identical ✅ identical ✅ identical - ✅ identical ✅ identical ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10
parcel (ts) ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 13 ❗️ 10 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 6 ⚠️ 6 ❗️ 10 ❗️ 13 ❗️ 10 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ✅ identical ✅ identical ✅ identical ✅ identical - ✅ identical ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10
parcel (ts-module) ❗️ 14 ❗️ 13 ❗️ 14 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ⚠️ 7 ❗️ 13 ❗️ 10 ❗️ 13 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ⚠️ 6 ⚠️ 6 ❗️ 10 ❗️ 13 ❗️ 10 ⚠️ 8 ⚠️ 7 ⚠️ 8 ⚠️ 8 ⚠️ 7 ⚠️ 8 ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical - ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10
vite (mjs) ⚠️ 9 💥 17 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 💥 15 ❗️ 13 💥 15 ❗️ 13 ❗️ 13 ❗️ 13 ⚠️ 9 ⚠️ 7 ⚠️ 7 ⚠️ 9 💥 16 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 - ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical
vite (js) ⚠️ 9 💥 17 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 💥 15 ❗️ 13 💥 15 ❗️ 13 ❗️ 13 ❗️ 13 ⚠️ 9 ⚠️ 7 ⚠️ 7 ⚠️ 9 💥 16 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ✅ identical - ✅ identical ✅ identical ✅ identical ✅ identical
vite (js-module) ⚠️ 9 💥 17 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 💥 15 ❗️ 13 💥 15 ❗️ 13 ❗️ 13 ❗️ 13 ⚠️ 9 ⚠️ 7 ⚠️ 7 ⚠️ 9 💥 16 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ✅ identical ✅ identical - ✅ identical ✅ identical ✅ identical
vite (mts) ⚠️ 9 💥 17 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 💥 15 ❗️ 13 💥 15 ❗️ 13 ❗️ 13 ❗️ 13 ⚠️ 9 ⚠️ 7 ⚠️ 7 ⚠️ 9 💥 16 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ✅ identical ✅ identical ✅ identical - ✅ identical ✅ identical
vite (ts) ⚠️ 9 💥 17 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 💥 15 ❗️ 13 💥 15 ❗️ 13 ❗️ 13 ❗️ 13 ⚠️ 9 ⚠️ 7 ⚠️ 7 ⚠️ 9 💥 16 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ✅ identical ✅ identical ✅ identical ✅ identical - ✅ identical
vite (ts-module) ⚠️ 9 💥 17 ⚠️ 9 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 13 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 ❗️ 11 💥 15 ❗️ 13 💥 15 ❗️ 13 ❗️ 13 ❗️ 13 ⚠️ 9 ⚠️ 7 ⚠️ 7 ⚠️ 9 💥 16 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ⚠️ 9 ⚠️ 8 ⚠️ 9 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ❗️ 10 ✅ identical ✅ identical ✅ identical ✅ identical ✅ identical -

node (.mjs) vs. node (.js)

node (mjs) vs. node (js) fixture node (mjs) node (js)
import x

import().default
default-export.js { default } syntax error
import x

import().default
default-export-esModule.js { [__esModule], default } syntax error
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
import x

import().default
single-object-export.js { named } syntax error
import x

import().default
single-object-with-default-export.js { named, default } syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.mjs
true syntax error

node (.mjs) vs. bun (.mjs)

node (mjs) vs. bun (mjs) fixture node (mjs) bun (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. bun (.js)

node (mjs) vs. bun (js) fixture node (mjs) bun (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. bun (.js with "type": "module")

node (mjs) vs. bun (js-module) fixture node (mjs) bun (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. bun (.mts)

node (mjs) vs. bun (mts) fixture node (mjs) bun (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. bun (.ts)

node (mjs) vs. bun (ts) fixture node (mjs) bun (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. bun (.ts with "type": "module")

node (mjs) vs. bun (ts-module) fixture node (mjs) bun (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. babel (.mjs)

node (mjs) vs. babel (mjs) fixture node (mjs) babel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.mjs) vs. babel (.js)

node (mjs) vs. babel (js) fixture node (mjs) babel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.mjs) vs. babel (.js with "type": "module")

node (mjs) vs. babel (js-module) fixture node (mjs) babel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.mjs) vs. babel (.mts)

node (mjs) vs. babel (mts) fixture node (mjs) babel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.mjs) vs. babel (.ts)

node (mjs) vs. babel (ts) fixture node (mjs) babel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.mjs) vs. babel (.ts with "type": "module")

node (mjs) vs. babel (ts-module) fixture node (mjs) babel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.mjs) vs. webpack (.mjs)

node (mjs) vs. webpack (mjs) fixture node (mjs) webpack (mjs)
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js

tla-esm.js
runtime error syntax error
await import() === require() tla-esModule.js runtime error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. webpack (.js)

node (mjs) vs. webpack (js) fixture node (mjs) webpack (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. webpack (.js with "type": "module")

node (mjs) vs. webpack (js-module) fixture node (mjs) webpack (js-module)
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js

tla-esm.js
runtime error syntax error
await import() === require() tla-esModule.js runtime error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. webpack (.mts)

node (mjs) vs. webpack (mts) fixture node (mjs) webpack (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. webpack (.ts)

node (mjs) vs. webpack (ts) fixture node (mjs) webpack (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. webpack (.ts with "type": "module")

node (mjs) vs. webpack (ts-module) fixture node (mjs) webpack (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.mjs) vs. rollup (.mjs)

node (mjs) vs. rollup (mjs) fixture node (mjs) rollup (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. rollup (.js)

node (mjs) vs. rollup (js) fixture node (mjs) rollup (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. rollup (.js with "type": "module")

node (mjs) vs. rollup (js-module) fixture node (mjs) rollup (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. rollup (.mts)

node (mjs) vs. rollup (mts) fixture node (mjs) rollup (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. rollup (.ts)

node (mjs) vs. rollup (ts) fixture node (mjs) rollup (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default default-export-esm.js syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import().default tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. rollup (.ts with "type": "module")

node (mjs) vs. rollup (ts-module) fixture node (mjs) rollup (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. esbuild (.mjs)

node (mjs) vs. esbuild (mjs) fixture node (mjs) esbuild (mjs)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. esbuild (.js)

node (mjs) vs. esbuild (js) fixture node (mjs) esbuild (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. esbuild (.js with "type": "module")

node (mjs) vs. esbuild (js-module) fixture node (mjs) esbuild (js-module)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. esbuild (.mts)

node (mjs) vs. esbuild (mts) fixture node (mjs) esbuild (mts)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. esbuild (.ts)

node (mjs) vs. esbuild (ts) fixture node (mjs) esbuild (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. esbuild (.ts with "type": "module")

node (mjs) vs. esbuild (ts-module) fixture node (mjs) esbuild (ts-module)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. parcel (.mjs)

node (mjs) vs. parcel (mjs) fixture node (mjs) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.mjs) vs. parcel (.js)

node (mjs) vs. parcel (js) fixture node (mjs) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.mjs) vs. parcel (.js with "type": "module")

node (mjs) vs. parcel (js-module) fixture node (mjs) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.mjs) vs. parcel (.mts)

node (mjs) vs. parcel (mts) fixture node (mjs) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.mjs) vs. parcel (.ts)

node (mjs) vs. parcel (ts) fixture node (mjs) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.mjs) vs. parcel (.ts with "type": "module")

node (mjs) vs. parcel (ts-module) fixture node (mjs) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.mjs) vs. vite (.mjs)

node (mjs) vs. vite (mjs) fixture node (mjs) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. vite (.js)

node (mjs) vs. vite (js) fixture node (mjs) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. vite (.js with "type": "module")

node (mjs) vs. vite (js-module) fixture node (mjs) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. vite (.mts)

node (mjs) vs. vite (mts) fixture node (mjs) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. vite (.ts)

node (mjs) vs. vite (ts) fixture node (mjs) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.mjs) vs. vite (.ts with "type": "module")

node (mjs) vs. vite (ts-module) fixture node (mjs) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js) vs. node (.js with "type": "module")

node (js) vs. node (js-module) fixture node (js) node (js-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error { [__esModule], default }
import x

import().default
default-export-esm.mjs

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
x = require() default-export.js { default } runtime error
x = require() default-export-esModule.js { [__esModule], default } runtime error
x = require()

await import() === require()
default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error runtime error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed runtime error
x = require() single-object-export.js { named } runtime error
x = require() single-object-with-default-export.js { named, default } runtime error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false runtime error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.mjs
syntax error true

node (.js) vs. bun (.mjs)

node (js) vs. bun (mjs) fixture node (js) bun (mjs)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export-esm.js syntax error { [__esModule] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule] }
x = require() tla-esm.js syntax error type error
x = require() tla-esm.mjs require(esm) not allowed type error
await import() === require() default-export-esm.js

tla-esm.js
syntax error false
await import() === require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. bun (.js)

node (js) vs. bun (js) fixture node (js) bun (js)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export-esm.js syntax error { [__esModule] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule] }
x = require() tla-esm.js syntax error type error
x = require() tla-esm.mjs require(esm) not allowed type error
await import() === require() default-export-esm.js

tla-esm.js
syntax error false
await import() === require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. bun (.js with "type": "module")

node (js) vs. bun (js-module) fixture node (js) bun (js-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export-esm.js syntax error { [__esModule] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule] }
x = require() tla-esm.js syntax error type error
x = require() tla-esm.mjs require(esm) not allowed type error
await import() === require() default-export-esm.js

tla-esm.js
syntax error false
await import() === require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. bun (.mts)

node (js) vs. bun (mts) fixture node (js) bun (mts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export-esm.js syntax error { [__esModule] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule] }
x = require() tla-esm.js syntax error type error
x = require() tla-esm.mjs require(esm) not allowed type error
await import() === require() default-export-esm.js

tla-esm.js
syntax error false
await import() === require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. bun (.ts)

node (js) vs. bun (ts) fixture node (js) bun (ts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export-esm.js syntax error { [__esModule] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule] }
x = require() tla-esm.js syntax error type error
x = require() tla-esm.mjs require(esm) not allowed type error
await import() === require() default-export-esm.js

tla-esm.js
syntax error false
await import() === require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. bun (.ts with "type": "module")

node (js) vs. bun (ts-module) fixture node (js) bun (ts-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export-esm.js syntax error { [__esModule] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule] }
x = require() tla-esm.js syntax error type error
x = require() tla-esm.mjs require(esm) not allowed type error
await import() === require() default-export-esm.js

tla-esm.js
syntax error false
await import() === require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. babel (.mjs)

node (js) vs. babel (mjs) fixture node (js) babel (mjs)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed syntax error
await import() === require() default-export-esModule.js false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. babel (.js)

node (js) vs. babel (js) fixture node (js) babel (js)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed syntax error
await import() === require() default-export-esModule.js false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. babel (.js with "type": "module")

node (js) vs. babel (js-module) fixture node (js) babel (js-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed syntax error
await import() === require() default-export-esModule.js false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. babel (.mts)

node (js) vs. babel (mts) fixture node (js) babel (mts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed syntax error
await import() === require() default-export-esModule.js false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. babel (.ts)

node (js) vs. babel (ts) fixture node (js) babel (ts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed syntax error
await import() === require() default-export-esModule.js false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. babel (.ts with "type": "module")

node (js) vs. babel (ts-module) fixture node (js) babel (ts-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed syntax error
await import() === require() default-export-esModule.js false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. webpack (.mjs)

node (js) vs. webpack (mjs) fixture node (js) webpack (mjs)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. webpack (.js)

node (js) vs. webpack (js) fixture node (js) webpack (js)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. webpack (.js with "type": "module")

node (js) vs. webpack (js-module) fixture node (js) webpack (js-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. webpack (.mts)

node (js) vs. webpack (mts) fixture node (js) webpack (mts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. webpack (.ts)

node (js) vs. webpack (ts) fixture node (js) webpack (ts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. webpack (.ts with "type": "module")

node (js) vs. webpack (ts-module) fixture node (js) webpack (ts-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

node (.js) vs. rollup (.mjs)

node (js) vs. rollup (mjs) fixture node (js) rollup (mjs)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. rollup (.js)

node (js) vs. rollup (js) fixture node (js) rollup (js)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. rollup (.js with "type": "module")

node (js) vs. rollup (js-module) fixture node (js) rollup (js-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. rollup (.mts)

node (js) vs. rollup (mts) fixture node (js) rollup (mts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. rollup (.ts)

node (js) vs. rollup (ts) fixture node (js) rollup (ts)
import x

import().default
default-export.js syntax error { default }
import x default-export-esModule.js syntax error 'default'
import x default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import().default default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esModule.js syntax error true
import * as x; x === await import() default-export-esm.mjs syntax error require(esm) not allowed

node (.js) vs. rollup (.ts with "type": "module")

node (js) vs. rollup (ts-module) fixture node (js) rollup (ts-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. esbuild (.mjs)

node (js) vs. esbuild (mjs) fixture node (js) esbuild (mjs)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

node (.js) vs. esbuild (.js)

node (js) vs. esbuild (js) fixture node (js) esbuild (js)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

node (.js) vs. esbuild (.js with "type": "module")

node (js) vs. esbuild (js-module) fixture node (js) esbuild (js-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

node (.js) vs. esbuild (.mts)

node (js) vs. esbuild (mts) fixture node (js) esbuild (mts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

node (.js) vs. esbuild (.ts)

node (js) vs. esbuild (ts) fixture node (js) esbuild (ts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

node (.js) vs. esbuild (.ts with "type": "module")

node (js) vs. esbuild (ts-module) fixture node (js) esbuild (ts-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js syntax error { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

node (.js) vs. parcel (.mjs)

node (js) vs. parcel (mjs) fixture node (js) parcel (mjs)
import x default-export.js syntax error { default }
import x default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x single-object-export.js syntax error { named }
import x single-object-with-default-export.js syntax error { named, default }
import().default default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-with-default-export.js
syntax error 'default'
import().default single-object-export.js syntax error undefined
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. parcel (.js)

node (js) vs. parcel (js) fixture node (js) parcel (js)
import x default-export.js syntax error { default }
import x default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x single-object-export.js syntax error { named }
import x single-object-with-default-export.js syntax error { named, default }
import().default default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-with-default-export.js
syntax error 'default'
import().default single-object-export.js syntax error undefined
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. parcel (.js with "type": "module")

node (js) vs. parcel (js-module) fixture node (js) parcel (js-module)
import x default-export.js syntax error { default }
import x default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x single-object-export.js syntax error { named }
import x single-object-with-default-export.js syntax error { named, default }
import().default default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-with-default-export.js
syntax error 'default'
import().default single-object-export.js syntax error undefined
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. parcel (.mts)

node (js) vs. parcel (mts) fixture node (js) parcel (mts)
import x default-export.js syntax error { default }
import x default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x single-object-export.js syntax error { named }
import x single-object-with-default-export.js syntax error { named, default }
import().default default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-with-default-export.js
syntax error 'default'
import().default single-object-export.js syntax error undefined
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. parcel (.ts)

node (js) vs. parcel (ts) fixture node (js) parcel (ts)
import x default-export.js syntax error { default }
import x default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x single-object-export.js syntax error { named }
import x single-object-with-default-export.js syntax error { named, default }
import().default default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-with-default-export.js
syntax error 'default'
import().default single-object-export.js syntax error undefined
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. parcel (.ts with "type": "module")

node (js) vs. parcel (ts-module) fixture node (js) parcel (ts-module)
import x default-export.js syntax error { default }
import x default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x single-object-export.js syntax error { named }
import x single-object-with-default-export.js syntax error { named, default }
import().default default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-with-default-export.js
syntax error 'default'
import().default single-object-export.js syntax error undefined
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. vite (.mjs)

node (js) vs. vite (mjs) fixture node (js) vite (mjs)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. vite (.js)

node (js) vs. vite (js) fixture node (js) vite (js)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. vite (.js with "type": "module")

node (js) vs. vite (js-module) fixture node (js) vite (js-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. vite (.mts)

node (js) vs. vite (mts) fixture node (js) vite (mts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. vite (.ts)

node (js) vs. vite (ts) fixture node (js) vite (ts)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js) vs. vite (.ts with "type": "module")

node (js) vs. vite (ts-module) fixture node (js) vite (ts-module)
import x

import().default
default-export.js syntax error { default }
import x

import().default
default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default
single-object-export.js syntax error { named }
import x

import().default
single-object-with-default-export.js syntax error { named, default }
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esModule.js

tla-esm.js
syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
syntax error true

node (.js with "type": "module") vs. bun (.mjs)

node (js-module) vs. bun (mjs) fixture node (js-module) bun (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. bun (.js)

node (js-module) vs. bun (js) fixture node (js-module) bun (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. bun (.js with "type": "module")

node (js-module) vs. bun (js-module) fixture node (js-module) bun (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. bun (.mts)

node (js-module) vs. bun (mts) fixture node (js-module) bun (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. bun (.ts)

node (js-module) vs. bun (ts) fixture node (js-module) bun (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. bun (.ts with "type": "module")

node (js-module) vs. bun (ts-module) fixture node (js-module) bun (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js syntax error runtime error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require() tla-esModule.js runtime error syntax error
x = require() tla-esm.js

tla-esm.mjs
runtime error type error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. babel (.mjs)

node (js-module) vs. babel (mjs) fixture node (js-module) babel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.js with "type": "module") vs. babel (.js)

node (js-module) vs. babel (js) fixture node (js-module) babel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.js with "type": "module") vs. babel (.js with "type": "module")

node (js-module) vs. babel (js-module) fixture node (js-module) babel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.js with "type": "module") vs. babel (.mts)

node (js-module) vs. babel (mts) fixture node (js-module) babel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.js with "type": "module") vs. babel (.ts)

node (js-module) vs. babel (ts) fixture node (js-module) babel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.js with "type": "module") vs. babel (.ts with "type": "module")

node (js-module) vs. babel (ts-module) fixture node (js-module) babel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.mjs

tla-esm.mjs
'default' syntax error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require()

await import() === require()
default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esModule.js runtime error true
import * as x; x === await import() default-export-esm.mjs

tla-esm.mjs
true syntax error

node (.js with "type": "module") vs. webpack (.mjs)

node (js-module) vs. webpack (mjs) fixture node (js-module) webpack (mjs)
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js

tla-esm.js
runtime error syntax error
await import() === require() tla-esModule.js runtime error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. webpack (.js)

node (js-module) vs. webpack (js) fixture node (js-module) webpack (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. webpack (.js with "type": "module")

node (js-module) vs. webpack (js-module) fixture node (js-module) webpack (js-module)
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js

tla-esm.js
runtime error syntax error
await import() === require() tla-esModule.js runtime error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. webpack (.mts)

node (js-module) vs. webpack (mts) fixture node (js-module) webpack (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. webpack (.ts)

node (js-module) vs. webpack (ts) fixture node (js-module) webpack (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. webpack (.ts with "type": "module")

node (js-module) vs. webpack (ts-module) fixture node (js-module) webpack (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js

tla-esm.js
syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G], [Module] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js runtime error compilation error
x = require() tla-esm.js

tla-esm.mjs
runtime error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js

tla-esm.js

tla-esm.mjs
runtime error false
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

tla-esm.js
syntax error true

node (.js with "type": "module") vs. rollup (.mjs)

node (js-module) vs. rollup (mjs) fixture node (js-module) rollup (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. rollup (.js)

node (js-module) vs. rollup (js) fixture node (js-module) rollup (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. rollup (.js with "type": "module")

node (js-module) vs. rollup (js-module) fixture node (js-module) rollup (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. rollup (.mts)

node (js-module) vs. rollup (mts) fixture node (js-module) rollup (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. rollup (.ts)

node (js-module) vs. rollup (ts) fixture node (js-module) rollup (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default default-export-esm.js syntax error 'default'
import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import().default tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. rollup (.ts with "type": "module")

node (js-module) vs. rollup (ts-module) fixture node (js-module) rollup (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
runtime error syntax error
x = require() default-export-esm.mjs

tla-esm.mjs
runtime error require(esm) not allowed
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
runtime error false
await import() === require() default-export-esm.js runtime error syntax error
await import() === require() default-export-esm.mjs runtime error require(esm) not allowed
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. esbuild (.mjs)

node (js-module) vs. esbuild (mjs) fixture node (js-module) esbuild (mjs)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. esbuild (.js)

node (js-module) vs. esbuild (js) fixture node (js-module) esbuild (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. esbuild (.js with "type": "module")

node (js-module) vs. esbuild (js-module) fixture node (js-module) esbuild (js-module)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. esbuild (.mts)

node (js-module) vs. esbuild (mts) fixture node (js-module) esbuild (mts)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. esbuild (.ts)

node (js-module) vs. esbuild (ts) fixture node (js-module) esbuild (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. esbuild (.ts with "type": "module")

node (js-module) vs. esbuild (ts-module) fixture node (js-module) esbuild (ts-module)
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js runtime error { [__esModule], default }
x = require() default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default: [G] }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. parcel (.mjs)

node (js-module) vs. parcel (mjs) fixture node (js-module) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.js with "type": "module") vs. parcel (.js)

node (js-module) vs. parcel (js) fixture node (js-module) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.js with "type": "module") vs. parcel (.js with "type": "module")

node (js-module) vs. parcel (js-module) fixture node (js-module) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.js with "type": "module") vs. parcel (.mts)

node (js-module) vs. parcel (mts) fixture node (js-module) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.js with "type": "module") vs. parcel (.ts)

node (js-module) vs. parcel (ts) fixture node (js-module) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.js with "type": "module") vs. parcel (.ts with "type": "module")

node (js-module) vs. parcel (ts-module) fixture node (js-module) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default
tla-esm.mjs 'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export.js runtime error { default }
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
runtime error { [__esModule], default }
x = require() single-object-export.js runtime error { named }
x = require() single-object-with-default-export.js runtime error { named, default }
x = require()

await import() === require()
tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true syntax error

node (.js with "type": "module") vs. vite (.mjs)

node (js-module) vs. vite (mjs) fixture node (js-module) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. vite (.js)

node (js-module) vs. vite (js) fixture node (js-module) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. vite (.js with "type": "module")

node (js-module) vs. vite (js-module) fixture node (js-module) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. vite (.mts)

node (js-module) vs. vite (mts) fixture node (js-module) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. vite (.ts)

node (js-module) vs. vite (ts) fixture node (js-module) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

node (.js with "type": "module") vs. vite (.ts with "type": "module")

node (js-module) vs. vite (ts-module) fixture node (js-module) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
default-export-esm.js syntax error 'default'
import x

import().default

import * as x; x === await import()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

import().default
tla-esm.mjs 'default' compilation error
x = require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js

tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
runtime error not fully bundled
await import() === require() tla-esModule.js

tla-esm.js

tla-esm.mjs
runtime error compilation error
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() tla-esm.mjs true compilation error

bun (.mjs) vs. babel (.mjs)

bun (mjs) vs. babel (mjs) fixture bun (mjs) babel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. babel (.js)

bun (mjs) vs. babel (js) fixture bun (mjs) babel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. babel (.js with "type": "module")

bun (mjs) vs. babel (js-module) fixture bun (mjs) babel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. babel (.mts)

bun (mjs) vs. babel (mts) fixture bun (mjs) babel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. babel (.ts)

bun (mjs) vs. babel (ts) fixture bun (mjs) babel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. babel (.ts with "type": "module")

bun (mjs) vs. babel (ts-module) fixture bun (mjs) babel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. webpack (.mjs)

bun (mjs) vs. webpack (mjs) fixture bun (mjs) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mjs) vs. webpack (.js)

bun (mjs) vs. webpack (js) fixture bun (mjs) webpack (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mjs) vs. webpack (.js with "type": "module")

bun (mjs) vs. webpack (js-module) fixture bun (mjs) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mjs) vs. webpack (.mts)

bun (mjs) vs. webpack (mts) fixture bun (mjs) webpack (mts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mjs) vs. webpack (.ts)

bun (mjs) vs. webpack (ts) fixture bun (mjs) webpack (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mjs) vs. webpack (.ts with "type": "module")

bun (mjs) vs. webpack (ts-module) fixture bun (mjs) webpack (ts-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mjs) vs. rollup (.mjs)

bun (mjs) vs. rollup (mjs) fixture bun (mjs) rollup (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. rollup (.js)

bun (mjs) vs. rollup (js) fixture bun (mjs) rollup (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. rollup (.js with "type": "module")

bun (mjs) vs. rollup (js-module) fixture bun (mjs) rollup (js-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. rollup (.mts)

bun (mjs) vs. rollup (mts) fixture bun (mjs) rollup (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. rollup (.ts)

bun (mjs) vs. rollup (ts) fixture bun (mjs) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. rollup (.ts with "type": "module")

bun (mjs) vs. rollup (ts-module) fixture bun (mjs) rollup (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. esbuild (.mjs)

bun (mjs) vs. esbuild (mjs) fixture bun (mjs) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. esbuild (.js)

bun (mjs) vs. esbuild (js) fixture bun (mjs) esbuild (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. esbuild (.js with "type": "module")

bun (mjs) vs. esbuild (js-module) fixture bun (mjs) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. esbuild (.mts)

bun (mjs) vs. esbuild (mts) fixture bun (mjs) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. esbuild (.ts)

bun (mjs) vs. esbuild (ts) fixture bun (mjs) esbuild (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. esbuild (.ts with "type": "module")

bun (mjs) vs. esbuild (ts-module) fixture bun (mjs) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. parcel (.mjs)

bun (mjs) vs. parcel (mjs) fixture bun (mjs) parcel (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. parcel (.js)

bun (mjs) vs. parcel (js) fixture bun (mjs) parcel (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. parcel (.js with "type": "module")

bun (mjs) vs. parcel (js-module) fixture bun (mjs) parcel (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. parcel (.mts)

bun (mjs) vs. parcel (mts) fixture bun (mjs) parcel (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. parcel (.ts)

bun (mjs) vs. parcel (ts) fixture bun (mjs) parcel (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. parcel (.ts with "type": "module")

bun (mjs) vs. parcel (ts-module) fixture bun (mjs) parcel (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mjs) vs. vite (.mjs)

bun (mjs) vs. vite (mjs) fixture bun (mjs) vite (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. vite (.js)

bun (mjs) vs. vite (js) fixture bun (mjs) vite (js)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. vite (.js with "type": "module")

bun (mjs) vs. vite (js-module) fixture bun (mjs) vite (js-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. vite (.mts)

bun (mjs) vs. vite (mts) fixture bun (mjs) vite (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. vite (.ts)

bun (mjs) vs. vite (ts) fixture bun (mjs) vite (ts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mjs) vs. vite (.ts with "type": "module")

bun (mjs) vs. vite (ts-module) fixture bun (mjs) vite (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. babel (.mjs)

bun (js) vs. babel (mjs) fixture bun (js) babel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. babel (.js)

bun (js) vs. babel (js) fixture bun (js) babel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. babel (.js with "type": "module")

bun (js) vs. babel (js-module) fixture bun (js) babel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. babel (.mts)

bun (js) vs. babel (mts) fixture bun (js) babel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. babel (.ts)

bun (js) vs. babel (ts) fixture bun (js) babel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. babel (.ts with "type": "module")

bun (js) vs. babel (ts-module) fixture bun (js) babel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. webpack (.mjs)

bun (js) vs. webpack (mjs) fixture bun (js) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js) vs. webpack (.js)

bun (js) vs. webpack (js) fixture bun (js) webpack (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js) vs. webpack (.js with "type": "module")

bun (js) vs. webpack (js-module) fixture bun (js) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js) vs. webpack (.mts)

bun (js) vs. webpack (mts) fixture bun (js) webpack (mts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js) vs. webpack (.ts)

bun (js) vs. webpack (ts) fixture bun (js) webpack (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js) vs. webpack (.ts with "type": "module")

bun (js) vs. webpack (ts-module) fixture bun (js) webpack (ts-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js) vs. rollup (.mjs)

bun (js) vs. rollup (mjs) fixture bun (js) rollup (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. rollup (.js)

bun (js) vs. rollup (js) fixture bun (js) rollup (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. rollup (.js with "type": "module")

bun (js) vs. rollup (js-module) fixture bun (js) rollup (js-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. rollup (.mts)

bun (js) vs. rollup (mts) fixture bun (js) rollup (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. rollup (.ts)

bun (js) vs. rollup (ts) fixture bun (js) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. rollup (.ts with "type": "module")

bun (js) vs. rollup (ts-module) fixture bun (js) rollup (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. esbuild (.mjs)

bun (js) vs. esbuild (mjs) fixture bun (js) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. esbuild (.js)

bun (js) vs. esbuild (js) fixture bun (js) esbuild (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. esbuild (.js with "type": "module")

bun (js) vs. esbuild (js-module) fixture bun (js) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. esbuild (.mts)

bun (js) vs. esbuild (mts) fixture bun (js) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. esbuild (.ts)

bun (js) vs. esbuild (ts) fixture bun (js) esbuild (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. esbuild (.ts with "type": "module")

bun (js) vs. esbuild (ts-module) fixture bun (js) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. parcel (.mjs)

bun (js) vs. parcel (mjs) fixture bun (js) parcel (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. parcel (.js)

bun (js) vs. parcel (js) fixture bun (js) parcel (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. parcel (.js with "type": "module")

bun (js) vs. parcel (js-module) fixture bun (js) parcel (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. parcel (.mts)

bun (js) vs. parcel (mts) fixture bun (js) parcel (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. parcel (.ts)

bun (js) vs. parcel (ts) fixture bun (js) parcel (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. parcel (.ts with "type": "module")

bun (js) vs. parcel (ts-module) fixture bun (js) parcel (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js) vs. vite (.mjs)

bun (js) vs. vite (mjs) fixture bun (js) vite (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. vite (.js)

bun (js) vs. vite (js) fixture bun (js) vite (js)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. vite (.js with "type": "module")

bun (js) vs. vite (js-module) fixture bun (js) vite (js-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. vite (.mts)

bun (js) vs. vite (mts) fixture bun (js) vite (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. vite (.ts)

bun (js) vs. vite (ts) fixture bun (js) vite (ts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js) vs. vite (.ts with "type": "module")

bun (js) vs. vite (ts-module) fixture bun (js) vite (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. babel (.mjs)

bun (js-module) vs. babel (mjs) fixture bun (js-module) babel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. babel (.js)

bun (js-module) vs. babel (js) fixture bun (js-module) babel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. babel (.js with "type": "module")

bun (js-module) vs. babel (js-module) fixture bun (js-module) babel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. babel (.mts)

bun (js-module) vs. babel (mts) fixture bun (js-module) babel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. babel (.ts)

bun (js-module) vs. babel (ts) fixture bun (js-module) babel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. babel (.ts with "type": "module")

bun (js-module) vs. babel (ts-module) fixture bun (js-module) babel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. webpack (.mjs)

bun (js-module) vs. webpack (mjs) fixture bun (js-module) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js with "type": "module") vs. webpack (.js)

bun (js-module) vs. webpack (js) fixture bun (js-module) webpack (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js with "type": "module") vs. webpack (.js with "type": "module")

bun (js-module) vs. webpack (js-module) fixture bun (js-module) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js with "type": "module") vs. webpack (.mts)

bun (js-module) vs. webpack (mts) fixture bun (js-module) webpack (mts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js with "type": "module") vs. webpack (.ts)

bun (js-module) vs. webpack (ts) fixture bun (js-module) webpack (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js with "type": "module") vs. webpack (.ts with "type": "module")

bun (js-module) vs. webpack (ts-module) fixture bun (js-module) webpack (ts-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.js with "type": "module") vs. rollup (.mjs)

bun (js-module) vs. rollup (mjs) fixture bun (js-module) rollup (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. rollup (.js)

bun (js-module) vs. rollup (js) fixture bun (js-module) rollup (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. rollup (.js with "type": "module")

bun (js-module) vs. rollup (js-module) fixture bun (js-module) rollup (js-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. rollup (.mts)

bun (js-module) vs. rollup (mts) fixture bun (js-module) rollup (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. rollup (.ts)

bun (js-module) vs. rollup (ts) fixture bun (js-module) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. rollup (.ts with "type": "module")

bun (js-module) vs. rollup (ts-module) fixture bun (js-module) rollup (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. esbuild (.mjs)

bun (js-module) vs. esbuild (mjs) fixture bun (js-module) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. esbuild (.js)

bun (js-module) vs. esbuild (js) fixture bun (js-module) esbuild (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. esbuild (.js with "type": "module")

bun (js-module) vs. esbuild (js-module) fixture bun (js-module) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. esbuild (.mts)

bun (js-module) vs. esbuild (mts) fixture bun (js-module) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. esbuild (.ts)

bun (js-module) vs. esbuild (ts) fixture bun (js-module) esbuild (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. esbuild (.ts with "type": "module")

bun (js-module) vs. esbuild (ts-module) fixture bun (js-module) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. parcel (.mjs)

bun (js-module) vs. parcel (mjs) fixture bun (js-module) parcel (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. parcel (.js)

bun (js-module) vs. parcel (js) fixture bun (js-module) parcel (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. parcel (.js with "type": "module")

bun (js-module) vs. parcel (js-module) fixture bun (js-module) parcel (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. parcel (.mts)

bun (js-module) vs. parcel (mts) fixture bun (js-module) parcel (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. parcel (.ts)

bun (js-module) vs. parcel (ts) fixture bun (js-module) parcel (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. parcel (.ts with "type": "module")

bun (js-module) vs. parcel (ts-module) fixture bun (js-module) parcel (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.js with "type": "module") vs. vite (.mjs)

bun (js-module) vs. vite (mjs) fixture bun (js-module) vite (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. vite (.js)

bun (js-module) vs. vite (js) fixture bun (js-module) vite (js)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. vite (.js with "type": "module")

bun (js-module) vs. vite (js-module) fixture bun (js-module) vite (js-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. vite (.mts)

bun (js-module) vs. vite (mts) fixture bun (js-module) vite (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. vite (.ts)

bun (js-module) vs. vite (ts) fixture bun (js-module) vite (ts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.js with "type": "module") vs. vite (.ts with "type": "module")

bun (js-module) vs. vite (ts-module) fixture bun (js-module) vite (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. babel (.mjs)

bun (mts) vs. babel (mjs) fixture bun (mts) babel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. babel (.js)

bun (mts) vs. babel (js) fixture bun (mts) babel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. babel (.js with "type": "module")

bun (mts) vs. babel (js-module) fixture bun (mts) babel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. babel (.mts)

bun (mts) vs. babel (mts) fixture bun (mts) babel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. babel (.ts)

bun (mts) vs. babel (ts) fixture bun (mts) babel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. babel (.ts with "type": "module")

bun (mts) vs. babel (ts-module) fixture bun (mts) babel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. webpack (.mjs)

bun (mts) vs. webpack (mjs) fixture bun (mts) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mts) vs. webpack (.js)

bun (mts) vs. webpack (js) fixture bun (mts) webpack (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mts) vs. webpack (.js with "type": "module")

bun (mts) vs. webpack (js-module) fixture bun (mts) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mts) vs. webpack (.mts)

bun (mts) vs. webpack (mts) fixture bun (mts) webpack (mts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mts) vs. webpack (.ts)

bun (mts) vs. webpack (ts) fixture bun (mts) webpack (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mts) vs. webpack (.ts with "type": "module")

bun (mts) vs. webpack (ts-module) fixture bun (mts) webpack (ts-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.mts) vs. rollup (.mjs)

bun (mts) vs. rollup (mjs) fixture bun (mts) rollup (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. rollup (.js)

bun (mts) vs. rollup (js) fixture bun (mts) rollup (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. rollup (.js with "type": "module")

bun (mts) vs. rollup (js-module) fixture bun (mts) rollup (js-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. rollup (.mts)

bun (mts) vs. rollup (mts) fixture bun (mts) rollup (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. rollup (.ts)

bun (mts) vs. rollup (ts) fixture bun (mts) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. rollup (.ts with "type": "module")

bun (mts) vs. rollup (ts-module) fixture bun (mts) rollup (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. esbuild (.mjs)

bun (mts) vs. esbuild (mjs) fixture bun (mts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. esbuild (.js)

bun (mts) vs. esbuild (js) fixture bun (mts) esbuild (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. esbuild (.js with "type": "module")

bun (mts) vs. esbuild (js-module) fixture bun (mts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. esbuild (.mts)

bun (mts) vs. esbuild (mts) fixture bun (mts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. esbuild (.ts)

bun (mts) vs. esbuild (ts) fixture bun (mts) esbuild (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. esbuild (.ts with "type": "module")

bun (mts) vs. esbuild (ts-module) fixture bun (mts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. parcel (.mjs)

bun (mts) vs. parcel (mjs) fixture bun (mts) parcel (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. parcel (.js)

bun (mts) vs. parcel (js) fixture bun (mts) parcel (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. parcel (.js with "type": "module")

bun (mts) vs. parcel (js-module) fixture bun (mts) parcel (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. parcel (.mts)

bun (mts) vs. parcel (mts) fixture bun (mts) parcel (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. parcel (.ts)

bun (mts) vs. parcel (ts) fixture bun (mts) parcel (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. parcel (.ts with "type": "module")

bun (mts) vs. parcel (ts-module) fixture bun (mts) parcel (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.mts) vs. vite (.mjs)

bun (mts) vs. vite (mjs) fixture bun (mts) vite (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. vite (.js)

bun (mts) vs. vite (js) fixture bun (mts) vite (js)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. vite (.js with "type": "module")

bun (mts) vs. vite (js-module) fixture bun (mts) vite (js-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. vite (.mts)

bun (mts) vs. vite (mts) fixture bun (mts) vite (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. vite (.ts)

bun (mts) vs. vite (ts) fixture bun (mts) vite (ts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.mts) vs. vite (.ts with "type": "module")

bun (mts) vs. vite (ts-module) fixture bun (mts) vite (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. babel (.mjs)

bun (ts) vs. babel (mjs) fixture bun (ts) babel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. babel (.js)

bun (ts) vs. babel (js) fixture bun (ts) babel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. babel (.js with "type": "module")

bun (ts) vs. babel (js-module) fixture bun (ts) babel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. babel (.mts)

bun (ts) vs. babel (mts) fixture bun (ts) babel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. babel (.ts)

bun (ts) vs. babel (ts) fixture bun (ts) babel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. babel (.ts with "type": "module")

bun (ts) vs. babel (ts-module) fixture bun (ts) babel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. webpack (.mjs)

bun (ts) vs. webpack (mjs) fixture bun (ts) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts) vs. webpack (.js)

bun (ts) vs. webpack (js) fixture bun (ts) webpack (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts) vs. webpack (.js with "type": "module")

bun (ts) vs. webpack (js-module) fixture bun (ts) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts) vs. webpack (.mts)

bun (ts) vs. webpack (mts) fixture bun (ts) webpack (mts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts) vs. webpack (.ts)

bun (ts) vs. webpack (ts) fixture bun (ts) webpack (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts) vs. webpack (.ts with "type": "module")

bun (ts) vs. webpack (ts-module) fixture bun (ts) webpack (ts-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts) vs. rollup (.mjs)

bun (ts) vs. rollup (mjs) fixture bun (ts) rollup (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. rollup (.js)

bun (ts) vs. rollup (js) fixture bun (ts) rollup (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. rollup (.js with "type": "module")

bun (ts) vs. rollup (js-module) fixture bun (ts) rollup (js-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. rollup (.mts)

bun (ts) vs. rollup (mts) fixture bun (ts) rollup (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. rollup (.ts)

bun (ts) vs. rollup (ts) fixture bun (ts) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. rollup (.ts with "type": "module")

bun (ts) vs. rollup (ts-module) fixture bun (ts) rollup (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. esbuild (.mjs)

bun (ts) vs. esbuild (mjs) fixture bun (ts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. esbuild (.js)

bun (ts) vs. esbuild (js) fixture bun (ts) esbuild (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. esbuild (.js with "type": "module")

bun (ts) vs. esbuild (js-module) fixture bun (ts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. esbuild (.mts)

bun (ts) vs. esbuild (mts) fixture bun (ts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. esbuild (.ts)

bun (ts) vs. esbuild (ts) fixture bun (ts) esbuild (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. esbuild (.ts with "type": "module")

bun (ts) vs. esbuild (ts-module) fixture bun (ts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. parcel (.mjs)

bun (ts) vs. parcel (mjs) fixture bun (ts) parcel (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. parcel (.js)

bun (ts) vs. parcel (js) fixture bun (ts) parcel (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. parcel (.js with "type": "module")

bun (ts) vs. parcel (js-module) fixture bun (ts) parcel (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. parcel (.mts)

bun (ts) vs. parcel (mts) fixture bun (ts) parcel (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. parcel (.ts)

bun (ts) vs. parcel (ts) fixture bun (ts) parcel (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. parcel (.ts with "type": "module")

bun (ts) vs. parcel (ts-module) fixture bun (ts) parcel (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts) vs. vite (.mjs)

bun (ts) vs. vite (mjs) fixture bun (ts) vite (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. vite (.js)

bun (ts) vs. vite (js) fixture bun (ts) vite (js)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. vite (.js with "type": "module")

bun (ts) vs. vite (js-module) fixture bun (ts) vite (js-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. vite (.mts)

bun (ts) vs. vite (mts) fixture bun (ts) vite (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. vite (.ts)

bun (ts) vs. vite (ts) fixture bun (ts) vite (ts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts) vs. vite (.ts with "type": "module")

bun (ts) vs. vite (ts-module) fixture bun (ts) vite (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. babel (.mjs)

bun (ts-module) vs. babel (mjs) fixture bun (ts-module) babel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. babel (.js)

bun (ts-module) vs. babel (js) fixture bun (ts-module) babel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. babel (.js with "type": "module")

bun (ts-module) vs. babel (js-module) fixture bun (ts-module) babel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. babel (.mts)

bun (ts-module) vs. babel (mts) fixture bun (ts-module) babel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. babel (.ts)

bun (ts-module) vs. babel (ts) fixture bun (ts-module) babel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. babel (.ts with "type": "module")

bun (ts-module) vs. babel (ts-module) fixture bun (ts-module) babel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
'default' syntax error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } syntax error
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export-esModule.js false true
await import() === require() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. webpack (.mjs)

bun (ts-module) vs. webpack (mjs) fixture bun (ts-module) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts with "type": "module") vs. webpack (.js)

bun (ts-module) vs. webpack (js) fixture bun (ts-module) webpack (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts with "type": "module") vs. webpack (.js with "type": "module")

bun (ts-module) vs. webpack (js-module) fixture bun (ts-module) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js

tla-esm.js
false syntax error
await import() === require() default-export-esm.mjs

tla-esm.mjs
false require(esm) not allowed
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts with "type": "module") vs. webpack (.mts)

bun (ts-module) vs. webpack (mts) fixture bun (ts-module) webpack (mts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts with "type": "module") vs. webpack (.ts)

bun (ts-module) vs. webpack (ts) fixture bun (ts-module) webpack (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts with "type": "module") vs. webpack (.ts with "type": "module")

bun (ts-module) vs. webpack (ts-module) fixture bun (ts-module) webpack (ts-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
type error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
false true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

bun (.ts with "type": "module") vs. rollup (.mjs)

bun (ts-module) vs. rollup (mjs) fixture bun (ts-module) rollup (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. rollup (.js)

bun (ts-module) vs. rollup (js) fixture bun (ts-module) rollup (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. rollup (.js with "type": "module")

bun (ts-module) vs. rollup (js-module) fixture bun (ts-module) rollup (js-module)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. rollup (.mts)

bun (ts-module) vs. rollup (mts) fixture bun (ts-module) rollup (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. rollup (.ts)

bun (ts-module) vs. rollup (ts) fixture bun (ts-module) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. rollup (.ts with "type": "module")

bun (ts-module) vs. rollup (ts-module) fixture bun (ts-module) rollup (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js { [__esModule] } syntax error
x = require() default-export-esm.mjs { [__esModule] } require(esm) not allowed
x = require() tla-esm.js type error syntax error
x = require() tla-esm.mjs type error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. esbuild (.mjs)

bun (ts-module) vs. esbuild (mjs) fixture bun (ts-module) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. esbuild (.js)

bun (ts-module) vs. esbuild (js) fixture bun (ts-module) esbuild (js)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. esbuild (.js with "type": "module")

bun (ts-module) vs. esbuild (js-module) fixture bun (ts-module) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. esbuild (.mts)

bun (ts-module) vs. esbuild (mts) fixture bun (ts-module) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. esbuild (.ts)

bun (ts-module) vs. esbuild (ts) fixture bun (ts-module) esbuild (ts)
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. esbuild (.ts with "type": "module")

bun (ts-module) vs. esbuild (ts-module) fixture bun (ts-module) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

x = require()
tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
type error compilation error
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. parcel (.mjs)

bun (ts-module) vs. parcel (mjs) fixture bun (ts-module) parcel (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. parcel (.js)

bun (ts-module) vs. parcel (js) fixture bun (ts-module) parcel (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. parcel (.js with "type": "module")

bun (ts-module) vs. parcel (js-module) fixture bun (ts-module) parcel (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. parcel (.mts)

bun (ts-module) vs. parcel (mts) fixture bun (ts-module) parcel (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. parcel (.ts)

bun (ts-module) vs. parcel (ts) fixture bun (ts-module) parcel (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. parcel (.ts with "type": "module")

bun (ts-module) vs. parcel (ts-module) fixture bun (ts-module) parcel (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error syntax error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
type error syntax error
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

bun (.ts with "type": "module") vs. vite (.mjs)

bun (ts-module) vs. vite (mjs) fixture bun (ts-module) vite (mjs)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. vite (.js)

bun (ts-module) vs. vite (js) fixture bun (ts-module) vite (js)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. vite (.js with "type": "module")

bun (ts-module) vs. vite (js-module) fixture bun (ts-module) vite (js-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. vite (.mts)

bun (ts-module) vs. vite (mts) fixture bun (ts-module) vite (mts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. vite (.ts)

bun (ts-module) vs. vite (ts) fixture bun (ts-module) vite (ts)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

bun (.ts with "type": "module") vs. vite (.ts with "type": "module")

bun (ts-module) vs. vite (ts-module) fixture bun (ts-module) vite (ts-module)
import x tla-esModule.js syntax error compilation error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js runtime error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js syntax error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
type error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

babel (.mjs) vs. webpack (.mjs)

babel (mjs) vs. webpack (mjs) fixture babel (mjs) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mjs) vs. webpack (.js)

babel (mjs) vs. webpack (js) fixture babel (mjs) webpack (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mjs) vs. webpack (.js with "type": "module")

babel (mjs) vs. webpack (js-module) fixture babel (mjs) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mjs) vs. webpack (.mts)

babel (mjs) vs. webpack (mts) fixture babel (mjs) webpack (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mjs) vs. webpack (.ts)

babel (mjs) vs. webpack (ts) fixture babel (mjs) webpack (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mjs) vs. webpack (.ts with "type": "module")

babel (mjs) vs. webpack (ts-module) fixture babel (mjs) webpack (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mjs) vs. rollup (.mjs)

babel (mjs) vs. rollup (mjs) fixture babel (mjs) rollup (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. rollup (.js)

babel (mjs) vs. rollup (js) fixture babel (mjs) rollup (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. rollup (.js with "type": "module")

babel (mjs) vs. rollup (js-module) fixture babel (mjs) rollup (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. rollup (.mts)

babel (mjs) vs. rollup (mts) fixture babel (mjs) rollup (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. rollup (.ts)

babel (mjs) vs. rollup (ts) fixture babel (mjs) rollup (ts)
import x

x = require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
import().default default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

babel (.mjs) vs. rollup (.ts with "type": "module")

babel (mjs) vs. rollup (ts-module) fixture babel (mjs) rollup (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. esbuild (.mjs)

babel (mjs) vs. esbuild (mjs) fixture babel (mjs) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. esbuild (.js)

babel (mjs) vs. esbuild (js) fixture babel (mjs) esbuild (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. esbuild (.js with "type": "module")

babel (mjs) vs. esbuild (js-module) fixture babel (mjs) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. esbuild (.mts)

babel (mjs) vs. esbuild (mts) fixture babel (mjs) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. esbuild (.ts)

babel (mjs) vs. esbuild (ts) fixture babel (mjs) esbuild (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. esbuild (.ts with "type": "module")

babel (mjs) vs. esbuild (ts-module) fixture babel (mjs) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. parcel (.mjs)

babel (mjs) vs. parcel (mjs) fixture babel (mjs) parcel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. parcel (.js)

babel (mjs) vs. parcel (js) fixture babel (mjs) parcel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. parcel (.js with "type": "module")

babel (mjs) vs. parcel (js-module) fixture babel (mjs) parcel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. parcel (.mts)

babel (mjs) vs. parcel (mts) fixture babel (mjs) parcel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. parcel (.ts)

babel (mjs) vs. parcel (ts) fixture babel (mjs) parcel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. parcel (.ts with "type": "module")

babel (mjs) vs. parcel (ts-module) fixture babel (mjs) parcel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. vite (.mjs)

babel (mjs) vs. vite (mjs) fixture babel (mjs) vite (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. vite (.js)

babel (mjs) vs. vite (js) fixture babel (mjs) vite (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. vite (.js with "type": "module")

babel (mjs) vs. vite (js-module) fixture babel (mjs) vite (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. vite (.mts)

babel (mjs) vs. vite (mts) fixture babel (mjs) vite (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. vite (.ts)

babel (mjs) vs. vite (ts) fixture babel (mjs) vite (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mjs) vs. vite (.ts with "type": "module")

babel (mjs) vs. vite (ts-module) fixture babel (mjs) vite (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. webpack (.mjs)

babel (js) vs. webpack (mjs) fixture babel (js) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js) vs. webpack (.js)

babel (js) vs. webpack (js) fixture babel (js) webpack (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js) vs. webpack (.js with "type": "module")

babel (js) vs. webpack (js-module) fixture babel (js) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js) vs. webpack (.mts)

babel (js) vs. webpack (mts) fixture babel (js) webpack (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js) vs. webpack (.ts)

babel (js) vs. webpack (ts) fixture babel (js) webpack (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js) vs. webpack (.ts with "type": "module")

babel (js) vs. webpack (ts-module) fixture babel (js) webpack (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js) vs. rollup (.mjs)

babel (js) vs. rollup (mjs) fixture babel (js) rollup (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. rollup (.js)

babel (js) vs. rollup (js) fixture babel (js) rollup (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. rollup (.js with "type": "module")

babel (js) vs. rollup (js-module) fixture babel (js) rollup (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. rollup (.mts)

babel (js) vs. rollup (mts) fixture babel (js) rollup (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. rollup (.ts)

babel (js) vs. rollup (ts) fixture babel (js) rollup (ts)
import x

x = require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
import().default default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

babel (.js) vs. rollup (.ts with "type": "module")

babel (js) vs. rollup (ts-module) fixture babel (js) rollup (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. esbuild (.mjs)

babel (js) vs. esbuild (mjs) fixture babel (js) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. esbuild (.js)

babel (js) vs. esbuild (js) fixture babel (js) esbuild (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. esbuild (.js with "type": "module")

babel (js) vs. esbuild (js-module) fixture babel (js) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. esbuild (.mts)

babel (js) vs. esbuild (mts) fixture babel (js) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. esbuild (.ts)

babel (js) vs. esbuild (ts) fixture babel (js) esbuild (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. esbuild (.ts with "type": "module")

babel (js) vs. esbuild (ts-module) fixture babel (js) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. parcel (.mjs)

babel (js) vs. parcel (mjs) fixture babel (js) parcel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. parcel (.js)

babel (js) vs. parcel (js) fixture babel (js) parcel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. parcel (.js with "type": "module")

babel (js) vs. parcel (js-module) fixture babel (js) parcel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. parcel (.mts)

babel (js) vs. parcel (mts) fixture babel (js) parcel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. parcel (.ts)

babel (js) vs. parcel (ts) fixture babel (js) parcel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. parcel (.ts with "type": "module")

babel (js) vs. parcel (ts-module) fixture babel (js) parcel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. vite (.mjs)

babel (js) vs. vite (mjs) fixture babel (js) vite (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. vite (.js)

babel (js) vs. vite (js) fixture babel (js) vite (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. vite (.js with "type": "module")

babel (js) vs. vite (js-module) fixture babel (js) vite (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. vite (.mts)

babel (js) vs. vite (mts) fixture babel (js) vite (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. vite (.ts)

babel (js) vs. vite (ts) fixture babel (js) vite (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js) vs. vite (.ts with "type": "module")

babel (js) vs. vite (ts-module) fixture babel (js) vite (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. webpack (.mjs)

babel (js-module) vs. webpack (mjs) fixture babel (js-module) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js with "type": "module") vs. webpack (.js)

babel (js-module) vs. webpack (js) fixture babel (js-module) webpack (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js with "type": "module") vs. webpack (.js with "type": "module")

babel (js-module) vs. webpack (js-module) fixture babel (js-module) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js with "type": "module") vs. webpack (.mts)

babel (js-module) vs. webpack (mts) fixture babel (js-module) webpack (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js with "type": "module") vs. webpack (.ts)

babel (js-module) vs. webpack (ts) fixture babel (js-module) webpack (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js with "type": "module") vs. webpack (.ts with "type": "module")

babel (js-module) vs. webpack (ts-module) fixture babel (js-module) webpack (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.js with "type": "module") vs. rollup (.mjs)

babel (js-module) vs. rollup (mjs) fixture babel (js-module) rollup (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. rollup (.js)

babel (js-module) vs. rollup (js) fixture babel (js-module) rollup (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. rollup (.js with "type": "module")

babel (js-module) vs. rollup (js-module) fixture babel (js-module) rollup (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. rollup (.mts)

babel (js-module) vs. rollup (mts) fixture babel (js-module) rollup (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. rollup (.ts)

babel (js-module) vs. rollup (ts) fixture babel (js-module) rollup (ts)
import x

x = require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
import().default default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

babel (.js with "type": "module") vs. rollup (.ts with "type": "module")

babel (js-module) vs. rollup (ts-module) fixture babel (js-module) rollup (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. esbuild (.mjs)

babel (js-module) vs. esbuild (mjs) fixture babel (js-module) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. esbuild (.js)

babel (js-module) vs. esbuild (js) fixture babel (js-module) esbuild (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. esbuild (.js with "type": "module")

babel (js-module) vs. esbuild (js-module) fixture babel (js-module) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. esbuild (.mts)

babel (js-module) vs. esbuild (mts) fixture babel (js-module) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. esbuild (.ts)

babel (js-module) vs. esbuild (ts) fixture babel (js-module) esbuild (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. esbuild (.ts with "type": "module")

babel (js-module) vs. esbuild (ts-module) fixture babel (js-module) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. parcel (.mjs)

babel (js-module) vs. parcel (mjs) fixture babel (js-module) parcel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. parcel (.js)

babel (js-module) vs. parcel (js) fixture babel (js-module) parcel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. parcel (.js with "type": "module")

babel (js-module) vs. parcel (js-module) fixture babel (js-module) parcel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. parcel (.mts)

babel (js-module) vs. parcel (mts) fixture babel (js-module) parcel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. parcel (.ts)

babel (js-module) vs. parcel (ts) fixture babel (js-module) parcel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. parcel (.ts with "type": "module")

babel (js-module) vs. parcel (ts-module) fixture babel (js-module) parcel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. vite (.mjs)

babel (js-module) vs. vite (mjs) fixture babel (js-module) vite (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. vite (.js)

babel (js-module) vs. vite (js) fixture babel (js-module) vite (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. vite (.js with "type": "module")

babel (js-module) vs. vite (js-module) fixture babel (js-module) vite (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. vite (.mts)

babel (js-module) vs. vite (mts) fixture babel (js-module) vite (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. vite (.ts)

babel (js-module) vs. vite (ts) fixture babel (js-module) vite (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.js with "type": "module") vs. vite (.ts with "type": "module")

babel (js-module) vs. vite (ts-module) fixture babel (js-module) vite (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. webpack (.mjs)

babel (mts) vs. webpack (mjs) fixture babel (mts) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mts) vs. webpack (.js)

babel (mts) vs. webpack (js) fixture babel (mts) webpack (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mts) vs. webpack (.js with "type": "module")

babel (mts) vs. webpack (js-module) fixture babel (mts) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mts) vs. webpack (.mts)

babel (mts) vs. webpack (mts) fixture babel (mts) webpack (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mts) vs. webpack (.ts)

babel (mts) vs. webpack (ts) fixture babel (mts) webpack (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mts) vs. webpack (.ts with "type": "module")

babel (mts) vs. webpack (ts-module) fixture babel (mts) webpack (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.mts) vs. rollup (.mjs)

babel (mts) vs. rollup (mjs) fixture babel (mts) rollup (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. rollup (.js)

babel (mts) vs. rollup (js) fixture babel (mts) rollup (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. rollup (.js with "type": "module")

babel (mts) vs. rollup (js-module) fixture babel (mts) rollup (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. rollup (.mts)

babel (mts) vs. rollup (mts) fixture babel (mts) rollup (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. rollup (.ts)

babel (mts) vs. rollup (ts) fixture babel (mts) rollup (ts)
import x

x = require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
import().default default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

babel (.mts) vs. rollup (.ts with "type": "module")

babel (mts) vs. rollup (ts-module) fixture babel (mts) rollup (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. esbuild (.mjs)

babel (mts) vs. esbuild (mjs) fixture babel (mts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. esbuild (.js)

babel (mts) vs. esbuild (js) fixture babel (mts) esbuild (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. esbuild (.js with "type": "module")

babel (mts) vs. esbuild (js-module) fixture babel (mts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. esbuild (.mts)

babel (mts) vs. esbuild (mts) fixture babel (mts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. esbuild (.ts)

babel (mts) vs. esbuild (ts) fixture babel (mts) esbuild (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. esbuild (.ts with "type": "module")

babel (mts) vs. esbuild (ts-module) fixture babel (mts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. parcel (.mjs)

babel (mts) vs. parcel (mjs) fixture babel (mts) parcel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. parcel (.js)

babel (mts) vs. parcel (js) fixture babel (mts) parcel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. parcel (.js with "type": "module")

babel (mts) vs. parcel (js-module) fixture babel (mts) parcel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. parcel (.mts)

babel (mts) vs. parcel (mts) fixture babel (mts) parcel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. parcel (.ts)

babel (mts) vs. parcel (ts) fixture babel (mts) parcel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. parcel (.ts with "type": "module")

babel (mts) vs. parcel (ts-module) fixture babel (mts) parcel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. vite (.mjs)

babel (mts) vs. vite (mjs) fixture babel (mts) vite (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. vite (.js)

babel (mts) vs. vite (js) fixture babel (mts) vite (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. vite (.js with "type": "module")

babel (mts) vs. vite (js-module) fixture babel (mts) vite (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. vite (.mts)

babel (mts) vs. vite (mts) fixture babel (mts) vite (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. vite (.ts)

babel (mts) vs. vite (ts) fixture babel (mts) vite (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.mts) vs. vite (.ts with "type": "module")

babel (mts) vs. vite (ts-module) fixture babel (mts) vite (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. webpack (.mjs)

babel (ts) vs. webpack (mjs) fixture babel (ts) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts) vs. webpack (.js)

babel (ts) vs. webpack (js) fixture babel (ts) webpack (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts) vs. webpack (.js with "type": "module")

babel (ts) vs. webpack (js-module) fixture babel (ts) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts) vs. webpack (.mts)

babel (ts) vs. webpack (mts) fixture babel (ts) webpack (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts) vs. webpack (.ts)

babel (ts) vs. webpack (ts) fixture babel (ts) webpack (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts) vs. webpack (.ts with "type": "module")

babel (ts) vs. webpack (ts-module) fixture babel (ts) webpack (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts) vs. rollup (.mjs)

babel (ts) vs. rollup (mjs) fixture babel (ts) rollup (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. rollup (.js)

babel (ts) vs. rollup (js) fixture babel (ts) rollup (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. rollup (.js with "type": "module")

babel (ts) vs. rollup (js-module) fixture babel (ts) rollup (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. rollup (.mts)

babel (ts) vs. rollup (mts) fixture babel (ts) rollup (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. rollup (.ts)

babel (ts) vs. rollup (ts) fixture babel (ts) rollup (ts)
import x

x = require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
import().default default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

babel (.ts) vs. rollup (.ts with "type": "module")

babel (ts) vs. rollup (ts-module) fixture babel (ts) rollup (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. esbuild (.mjs)

babel (ts) vs. esbuild (mjs) fixture babel (ts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. esbuild (.js)

babel (ts) vs. esbuild (js) fixture babel (ts) esbuild (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. esbuild (.js with "type": "module")

babel (ts) vs. esbuild (js-module) fixture babel (ts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. esbuild (.mts)

babel (ts) vs. esbuild (mts) fixture babel (ts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. esbuild (.ts)

babel (ts) vs. esbuild (ts) fixture babel (ts) esbuild (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. esbuild (.ts with "type": "module")

babel (ts) vs. esbuild (ts-module) fixture babel (ts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. parcel (.mjs)

babel (ts) vs. parcel (mjs) fixture babel (ts) parcel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. parcel (.js)

babel (ts) vs. parcel (js) fixture babel (ts) parcel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. parcel (.js with "type": "module")

babel (ts) vs. parcel (js-module) fixture babel (ts) parcel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. parcel (.mts)

babel (ts) vs. parcel (mts) fixture babel (ts) parcel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. parcel (.ts)

babel (ts) vs. parcel (ts) fixture babel (ts) parcel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. parcel (.ts with "type": "module")

babel (ts) vs. parcel (ts-module) fixture babel (ts) parcel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. vite (.mjs)

babel (ts) vs. vite (mjs) fixture babel (ts) vite (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. vite (.js)

babel (ts) vs. vite (js) fixture babel (ts) vite (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. vite (.js with "type": "module")

babel (ts) vs. vite (js-module) fixture babel (ts) vite (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. vite (.mts)

babel (ts) vs. vite (mts) fixture babel (ts) vite (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. vite (.ts)

babel (ts) vs. vite (ts) fixture babel (ts) vite (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts) vs. vite (.ts with "type": "module")

babel (ts) vs. vite (ts-module) fixture babel (ts) vite (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. webpack (.mjs)

babel (ts-module) vs. webpack (mjs) fixture babel (ts-module) webpack (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. webpack (.js)

babel (ts-module) vs. webpack (js) fixture babel (ts-module) webpack (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. webpack (.js with "type": "module")

babel (ts-module) vs. webpack (js-module) fixture babel (ts-module) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require()

await import() === require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. webpack (.mts)

babel (ts-module) vs. webpack (mts) fixture babel (ts-module) webpack (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. webpack (.ts)

babel (ts-module) vs. webpack (ts) fixture babel (ts-module) webpack (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. webpack (.ts with "type": "module")

babel (ts-module) vs. webpack (ts-module) fixture babel (ts-module) webpack (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G], [Module] }
x = require() tla-esm.js

tla-esm.mjs
syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error true
await import() === require() tla-esm.js

tla-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs

tla-esm.js

tla-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. rollup (.mjs)

babel (ts-module) vs. rollup (mjs) fixture babel (ts-module) rollup (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. rollup (.js)

babel (ts-module) vs. rollup (js) fixture babel (ts-module) rollup (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. rollup (.js with "type": "module")

babel (ts-module) vs. rollup (js-module) fixture babel (ts-module) rollup (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. rollup (.mts)

babel (ts-module) vs. rollup (mts) fixture babel (ts-module) rollup (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. rollup (.ts)

babel (ts-module) vs. rollup (ts) fixture babel (ts-module) rollup (ts)
import x

x = require()
default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
import().default default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false

babel (.ts with "type": "module") vs. rollup (.ts with "type": "module")

babel (ts-module) vs. rollup (ts-module) fixture babel (ts-module) rollup (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.mjs

tla-esm.mjs
syntax error require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.mjs syntax error require(esm) not allowed
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. esbuild (.mjs)

babel (ts-module) vs. esbuild (mjs) fixture babel (ts-module) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. esbuild (.js)

babel (ts-module) vs. esbuild (js) fixture babel (ts-module) esbuild (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. esbuild (.js with "type": "module")

babel (ts-module) vs. esbuild (js-module) fixture babel (ts-module) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. esbuild (.mts)

babel (ts-module) vs. esbuild (mts) fixture babel (ts-module) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. esbuild (.ts)

babel (ts-module) vs. esbuild (ts) fixture babel (ts-module) esbuild (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. esbuild (.ts with "type": "module")

babel (ts-module) vs. esbuild (ts-module) fixture babel (ts-module) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default: [G] }
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. parcel (.mjs)

babel (ts-module) vs. parcel (mjs) fixture babel (ts-module) parcel (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. parcel (.js)

babel (ts-module) vs. parcel (js) fixture babel (ts-module) parcel (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. parcel (.js with "type": "module")

babel (ts-module) vs. parcel (js-module) fixture babel (ts-module) parcel (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. parcel (.mts)

babel (ts-module) vs. parcel (mts) fixture babel (ts-module) parcel (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. parcel (.ts)

babel (ts-module) vs. parcel (ts) fixture babel (ts-module) parcel (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. parcel (.ts with "type": "module")

babel (ts-module) vs. parcel (ts-module) fixture babel (ts-module) parcel (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
syntax error { [__esModule], default }
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. vite (.mjs)

babel (ts-module) vs. vite (mjs) fixture babel (ts-module) vite (mjs)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. vite (.js)

babel (ts-module) vs. vite (js) fixture babel (ts-module) vite (js)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. vite (.js with "type": "module")

babel (ts-module) vs. vite (js-module) fixture babel (ts-module) vite (js-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. vite (.mts)

babel (ts-module) vs. vite (mts) fixture babel (ts-module) vite (mts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. vite (.ts)

babel (ts-module) vs. vite (ts) fixture babel (ts-module) vite (ts)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

babel (.ts with "type": "module") vs. vite (.ts with "type": "module")

babel (ts-module) vs. vite (ts-module) fixture babel (ts-module) vite (ts-module)
import x

import().default
default-export-esm.js

default-export-esm.mjs
syntax error 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs

tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js true not fully bundled
await import() === require() default-export-esm.js

default-export-esm.mjs
syntax error not fully bundled
import * as x; x === await import() default-export-esm.js

default-export-esm.mjs
syntax error true

webpack (.mjs) vs. webpack (.js)

webpack (mjs) vs. webpack (js) fixture webpack (mjs) webpack (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esModule.js syntax error compilation error
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require()

import * as x; x === await import()
default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false

webpack (.mjs) vs. webpack (.mts)

webpack (mjs) vs. webpack (mts) fixture webpack (mjs) webpack (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esModule.js syntax error compilation error
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require()

import * as x; x === await import()
default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false

webpack (.mjs) vs. webpack (.ts)

webpack (mjs) vs. webpack (ts) fixture webpack (mjs) webpack (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esModule.js syntax error compilation error
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require()

import * as x; x === await import()
default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false

webpack (.mjs) vs. webpack (.ts with "type": "module")

webpack (mjs) vs. webpack (ts-module) fixture webpack (mjs) webpack (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esModule.js syntax error compilation error
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require()

import * as x; x === await import()
default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false

webpack (.mjs) vs. rollup (.mjs)

webpack (mjs) vs. rollup (mjs) fixture webpack (mjs) rollup (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. rollup (.js)

webpack (mjs) vs. rollup (js) fixture webpack (mjs) rollup (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. rollup (.js with "type": "module")

webpack (mjs) vs. rollup (js-module) fixture webpack (mjs) rollup (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. rollup (.mts)

webpack (mjs) vs. rollup (mts) fixture webpack (mjs) rollup (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. rollup (.ts)

webpack (mjs) vs. rollup (ts) fixture webpack (mjs) rollup (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import x tla-esModule.js compilation error syntax error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export-esModule.js false true
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. rollup (.ts with "type": "module")

webpack (mjs) vs. rollup (ts-module) fixture webpack (mjs) rollup (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. esbuild (.mjs)

webpack (mjs) vs. esbuild (mjs) fixture webpack (mjs) esbuild (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. esbuild (.js)

webpack (mjs) vs. esbuild (js) fixture webpack (mjs) esbuild (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. esbuild (.js with "type": "module")

webpack (mjs) vs. esbuild (js-module) fixture webpack (mjs) esbuild (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. esbuild (.mts)

webpack (mjs) vs. esbuild (mts) fixture webpack (mjs) esbuild (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. esbuild (.ts)

webpack (mjs) vs. esbuild (ts) fixture webpack (mjs) esbuild (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. esbuild (.ts with "type": "module")

webpack (mjs) vs. esbuild (ts-module) fixture webpack (mjs) esbuild (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. parcel (.mjs)

webpack (mjs) vs. parcel (mjs) fixture webpack (mjs) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mjs) vs. parcel (.js)

webpack (mjs) vs. parcel (js) fixture webpack (mjs) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mjs) vs. parcel (.js with "type": "module")

webpack (mjs) vs. parcel (js-module) fixture webpack (mjs) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mjs) vs. parcel (.mts)

webpack (mjs) vs. parcel (mts) fixture webpack (mjs) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mjs) vs. parcel (.ts)

webpack (mjs) vs. parcel (ts) fixture webpack (mjs) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mjs) vs. parcel (.ts with "type": "module")

webpack (mjs) vs. parcel (ts-module) fixture webpack (mjs) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mjs) vs. vite (.mjs)

webpack (mjs) vs. vite (mjs) fixture webpack (mjs) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. vite (.js)

webpack (mjs) vs. vite (js) fixture webpack (mjs) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. vite (.js with "type": "module")

webpack (mjs) vs. vite (js-module) fixture webpack (mjs) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. vite (.mts)

webpack (mjs) vs. vite (mts) fixture webpack (mjs) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. vite (.ts)

webpack (mjs) vs. vite (ts) fixture webpack (mjs) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mjs) vs. vite (.ts with "type": "module")

webpack (mjs) vs. vite (ts-module) fixture webpack (mjs) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. webpack (.js with "type": "module")

webpack (js) vs. webpack (js-module) fixture webpack (js) webpack (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require()

import * as x; x === await import()
default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js false syntax error
await import() === require() tla-esm.mjs false require(esm) not allowed

webpack (.js) vs. rollup (.mjs)

webpack (js) vs. rollup (mjs) fixture webpack (js) rollup (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. rollup (.js)

webpack (js) vs. rollup (js) fixture webpack (js) rollup (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. rollup (.js with "type": "module")

webpack (js) vs. rollup (js-module) fixture webpack (js) rollup (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. rollup (.mts)

webpack (js) vs. rollup (mts) fixture webpack (js) rollup (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. rollup (.ts)

webpack (js) vs. rollup (ts) fixture webpack (js) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import x

x = require()
tla-esModule.js compilation error syntax error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.js true syntax error
await import() === require()

import * as x; x === await import()
default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. rollup (.ts with "type": "module")

webpack (js) vs. rollup (ts-module) fixture webpack (js) rollup (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. esbuild (.mjs)

webpack (js) vs. esbuild (mjs) fixture webpack (js) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. esbuild (.js)

webpack (js) vs. esbuild (js) fixture webpack (js) esbuild (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. esbuild (.js with "type": "module")

webpack (js) vs. esbuild (js-module) fixture webpack (js) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. esbuild (.mts)

webpack (js) vs. esbuild (mts) fixture webpack (js) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. esbuild (.ts)

webpack (js) vs. esbuild (ts) fixture webpack (js) esbuild (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. esbuild (.ts with "type": "module")

webpack (js) vs. esbuild (ts-module) fixture webpack (js) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. parcel (.mjs)

webpack (js) vs. parcel (mjs) fixture webpack (js) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js) vs. parcel (.js)

webpack (js) vs. parcel (js) fixture webpack (js) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js) vs. parcel (.js with "type": "module")

webpack (js) vs. parcel (js-module) fixture webpack (js) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js) vs. parcel (.mts)

webpack (js) vs. parcel (mts) fixture webpack (js) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js) vs. parcel (.ts)

webpack (js) vs. parcel (ts) fixture webpack (js) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js) vs. parcel (.ts with "type": "module")

webpack (js) vs. parcel (ts-module) fixture webpack (js) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js) vs. vite (.mjs)

webpack (js) vs. vite (mjs) fixture webpack (js) vite (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. vite (.js)

webpack (js) vs. vite (js) fixture webpack (js) vite (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. vite (.js with "type": "module")

webpack (js) vs. vite (js-module) fixture webpack (js) vite (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. vite (.mts)

webpack (js) vs. vite (mts) fixture webpack (js) vite (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. vite (.ts)

webpack (js) vs. vite (ts) fixture webpack (js) vite (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js) vs. vite (.ts with "type": "module")

webpack (js) vs. vite (ts-module) fixture webpack (js) vite (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. webpack (.mts)

webpack (js-module) vs. webpack (mts) fixture webpack (js-module) webpack (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esModule.js syntax error compilation error
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require()

import * as x; x === await import()
default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false

webpack (.js with "type": "module") vs. webpack (.ts)

webpack (js-module) vs. webpack (ts) fixture webpack (js-module) webpack (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esModule.js syntax error compilation error
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require()

import * as x; x === await import()
default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false

webpack (.js with "type": "module") vs. webpack (.ts with "type": "module")

webpack (js-module) vs. webpack (ts-module) fixture webpack (js-module) webpack (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default: [G], [Module] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G], [Module] }
x = require() tla-esModule.js syntax error compilation error
x = require() tla-esm.js syntax error Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
x = require() tla-esm.mjs require(esm) not allowed Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } }
await import() === require()

import * as x; x === await import()
default-export-esModule.js false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
await import() === require() tla-esm.js syntax error false
await import() === require() tla-esm.mjs require(esm) not allowed false

webpack (.js with "type": "module") vs. rollup (.mjs)

webpack (js-module) vs. rollup (mjs) fixture webpack (js-module) rollup (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. rollup (.js)

webpack (js-module) vs. rollup (js) fixture webpack (js-module) rollup (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. rollup (.js with "type": "module")

webpack (js-module) vs. rollup (js-module) fixture webpack (js-module) rollup (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. rollup (.mts)

webpack (js-module) vs. rollup (mts) fixture webpack (js-module) rollup (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. rollup (.ts)

webpack (js-module) vs. rollup (ts) fixture webpack (js-module) rollup (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import x tla-esModule.js compilation error syntax error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export-esModule.js false true
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. rollup (.ts with "type": "module")

webpack (js-module) vs. rollup (ts-module) fixture webpack (js-module) rollup (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. esbuild (.mjs)

webpack (js-module) vs. esbuild (mjs) fixture webpack (js-module) esbuild (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. esbuild (.js)

webpack (js-module) vs. esbuild (js) fixture webpack (js-module) esbuild (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. esbuild (.js with "type": "module")

webpack (js-module) vs. esbuild (js-module) fixture webpack (js-module) esbuild (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. esbuild (.mts)

webpack (js-module) vs. esbuild (mts) fixture webpack (js-module) esbuild (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. esbuild (.ts)

webpack (js-module) vs. esbuild (ts) fixture webpack (js-module) esbuild (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. esbuild (.ts with "type": "module")

webpack (js-module) vs. esbuild (ts-module) fixture webpack (js-module) esbuild (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
await import() === require() tla-esm.js syntax error compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. parcel (.mjs)

webpack (js-module) vs. parcel (mjs) fixture webpack (js-module) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js with "type": "module") vs. parcel (.js)

webpack (js-module) vs. parcel (js) fixture webpack (js-module) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js with "type": "module") vs. parcel (.js with "type": "module")

webpack (js-module) vs. parcel (js-module) fixture webpack (js-module) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js with "type": "module") vs. parcel (.mts)

webpack (js-module) vs. parcel (mts) fixture webpack (js-module) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js with "type": "module") vs. parcel (.ts)

webpack (js-module) vs. parcel (ts) fixture webpack (js-module) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js with "type": "module") vs. parcel (.ts with "type": "module")

webpack (js-module) vs. parcel (ts-module) fixture webpack (js-module) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require()

await import() === require()
tla-esm.mjs require(esm) not allowed syntax error
await import() === require()

import * as x; x === await import()
default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.js with "type": "module") vs. vite (.mjs)

webpack (js-module) vs. vite (mjs) fixture webpack (js-module) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. vite (.js)

webpack (js-module) vs. vite (js) fixture webpack (js-module) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. vite (.js with "type": "module")

webpack (js-module) vs. vite (js-module) fixture webpack (js-module) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. vite (.mts)

webpack (js-module) vs. vite (mts) fixture webpack (js-module) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. vite (.ts)

webpack (js-module) vs. vite (ts) fixture webpack (js-module) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.js with "type": "module") vs. vite (.ts with "type": "module")

webpack (js-module) vs. vite (ts-module) fixture webpack (js-module) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
await import() === require() tla-esm.js syntax error compilation error
await import() === require() tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. rollup (.mjs)

webpack (mts) vs. rollup (mjs) fixture webpack (mts) rollup (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. rollup (.js)

webpack (mts) vs. rollup (js) fixture webpack (mts) rollup (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. rollup (.js with "type": "module")

webpack (mts) vs. rollup (js-module) fixture webpack (mts) rollup (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. rollup (.mts)

webpack (mts) vs. rollup (mts) fixture webpack (mts) rollup (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. rollup (.ts)

webpack (mts) vs. rollup (ts) fixture webpack (mts) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import x

x = require()
tla-esModule.js compilation error syntax error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.js true syntax error
await import() === require()

import * as x; x === await import()
default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. rollup (.ts with "type": "module")

webpack (mts) vs. rollup (ts-module) fixture webpack (mts) rollup (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. esbuild (.mjs)

webpack (mts) vs. esbuild (mjs) fixture webpack (mts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. esbuild (.js)

webpack (mts) vs. esbuild (js) fixture webpack (mts) esbuild (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. esbuild (.js with "type": "module")

webpack (mts) vs. esbuild (js-module) fixture webpack (mts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. esbuild (.mts)

webpack (mts) vs. esbuild (mts) fixture webpack (mts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. esbuild (.ts)

webpack (mts) vs. esbuild (ts) fixture webpack (mts) esbuild (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. esbuild (.ts with "type": "module")

webpack (mts) vs. esbuild (ts-module) fixture webpack (mts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. parcel (.mjs)

webpack (mts) vs. parcel (mjs) fixture webpack (mts) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mts) vs. parcel (.js)

webpack (mts) vs. parcel (js) fixture webpack (mts) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mts) vs. parcel (.js with "type": "module")

webpack (mts) vs. parcel (js-module) fixture webpack (mts) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mts) vs. parcel (.mts)

webpack (mts) vs. parcel (mts) fixture webpack (mts) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mts) vs. parcel (.ts)

webpack (mts) vs. parcel (ts) fixture webpack (mts) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mts) vs. parcel (.ts with "type": "module")

webpack (mts) vs. parcel (ts-module) fixture webpack (mts) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.mts) vs. vite (.mjs)

webpack (mts) vs. vite (mjs) fixture webpack (mts) vite (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. vite (.js)

webpack (mts) vs. vite (js) fixture webpack (mts) vite (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. vite (.js with "type": "module")

webpack (mts) vs. vite (js-module) fixture webpack (mts) vite (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. vite (.mts)

webpack (mts) vs. vite (mts) fixture webpack (mts) vite (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. vite (.ts)

webpack (mts) vs. vite (ts) fixture webpack (mts) vite (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.mts) vs. vite (.ts with "type": "module")

webpack (mts) vs. vite (ts-module) fixture webpack (mts) vite (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. rollup (.mjs)

webpack (ts) vs. rollup (mjs) fixture webpack (ts) rollup (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. rollup (.js)

webpack (ts) vs. rollup (js) fixture webpack (ts) rollup (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. rollup (.js with "type": "module")

webpack (ts) vs. rollup (js-module) fixture webpack (ts) rollup (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. rollup (.mts)

webpack (ts) vs. rollup (mts) fixture webpack (ts) rollup (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. rollup (.ts)

webpack (ts) vs. rollup (ts) fixture webpack (ts) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import x

x = require()
tla-esModule.js compilation error syntax error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.js true syntax error
await import() === require()

import * as x; x === await import()
default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. rollup (.ts with "type": "module")

webpack (ts) vs. rollup (ts-module) fixture webpack (ts) rollup (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. esbuild (.mjs)

webpack (ts) vs. esbuild (mjs) fixture webpack (ts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. esbuild (.js)

webpack (ts) vs. esbuild (js) fixture webpack (ts) esbuild (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. esbuild (.js with "type": "module")

webpack (ts) vs. esbuild (js-module) fixture webpack (ts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. esbuild (.mts)

webpack (ts) vs. esbuild (mts) fixture webpack (ts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. esbuild (.ts)

webpack (ts) vs. esbuild (ts) fixture webpack (ts) esbuild (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. esbuild (.ts with "type": "module")

webpack (ts) vs. esbuild (ts-module) fixture webpack (ts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. parcel (.mjs)

webpack (ts) vs. parcel (mjs) fixture webpack (ts) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts) vs. parcel (.js)

webpack (ts) vs. parcel (js) fixture webpack (ts) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts) vs. parcel (.js with "type": "module")

webpack (ts) vs. parcel (js-module) fixture webpack (ts) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts) vs. parcel (.mts)

webpack (ts) vs. parcel (mts) fixture webpack (ts) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts) vs. parcel (.ts)

webpack (ts) vs. parcel (ts) fixture webpack (ts) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts) vs. parcel (.ts with "type": "module")

webpack (ts) vs. parcel (ts-module) fixture webpack (ts) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts) vs. vite (.mjs)

webpack (ts) vs. vite (mjs) fixture webpack (ts) vite (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. vite (.js)

webpack (ts) vs. vite (js) fixture webpack (ts) vite (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. vite (.js with "type": "module")

webpack (ts) vs. vite (js-module) fixture webpack (ts) vite (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. vite (.mts)

webpack (ts) vs. vite (mts) fixture webpack (ts) vite (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. vite (.ts)

webpack (ts) vs. vite (ts) fixture webpack (ts) vite (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts) vs. vite (.ts with "type": "module")

webpack (ts) vs. vite (ts-module) fixture webpack (ts) vite (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. rollup (.mjs)

webpack (ts-module) vs. rollup (mjs) fixture webpack (ts-module) rollup (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. rollup (.js)

webpack (ts-module) vs. rollup (js) fixture webpack (ts-module) rollup (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. rollup (.js with "type": "module")

webpack (ts-module) vs. rollup (js-module) fixture webpack (ts-module) rollup (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. rollup (.mts)

webpack (ts-module) vs. rollup (mts) fixture webpack (ts-module) rollup (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. rollup (.ts)

webpack (ts-module) vs. rollup (ts) fixture webpack (ts-module) rollup (ts)
import x default-export-esm.js

tla-esm.js
'default' syntax error
import x default-export-esm.mjs

tla-esm.mjs
'default' require(esm) not allowed
import x

x = require()
tla-esModule.js compilation error syntax error
import().default tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require()

import * as x; x === await import()
default-export-esm.js true syntax error
await import() === require()

import * as x; x === await import()
default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. rollup (.ts with "type": "module")

webpack (ts-module) vs. rollup (ts-module) fixture webpack (ts-module) rollup (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js { [__esModule], default: [G], [Module] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G], [Module] } require(esm) not allowed
x = require() tla-esModule.js compilation error syntax error
x = require() tla-esm.js Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
x = require() tla-esm.mjs Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } require(esm) not allowed
await import() === require() default-export-esModule.js true false
await import() === require() default-export-esm.js true syntax error
await import() === require() default-export-esm.mjs true require(esm) not allowed
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. esbuild (.mjs)

webpack (ts-module) vs. esbuild (mjs) fixture webpack (ts-module) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. esbuild (.js)

webpack (ts-module) vs. esbuild (js) fixture webpack (ts-module) esbuild (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. esbuild (.js with "type": "module")

webpack (ts-module) vs. esbuild (js-module) fixture webpack (ts-module) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. esbuild (.mts)

webpack (ts-module) vs. esbuild (mts) fixture webpack (ts-module) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. esbuild (.ts)

webpack (ts-module) vs. esbuild (ts) fixture webpack (ts-module) esbuild (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. esbuild (.ts with "type": "module")

webpack (ts-module) vs. esbuild (ts-module) fixture webpack (ts-module) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default: [G] }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } compilation error
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true false
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. parcel (.mjs)

webpack (ts-module) vs. parcel (mjs) fixture webpack (ts-module) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts with "type": "module") vs. parcel (.js)

webpack (ts-module) vs. parcel (js) fixture webpack (ts-module) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts with "type": "module") vs. parcel (.js with "type": "module")

webpack (ts-module) vs. parcel (js-module) fixture webpack (ts-module) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts with "type": "module") vs. parcel (.mts)

webpack (ts-module) vs. parcel (mts) fixture webpack (ts-module) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts with "type": "module") vs. parcel (.ts)

webpack (ts-module) vs. parcel (ts) fixture webpack (ts-module) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts with "type": "module") vs. parcel (.ts with "type": "module")

webpack (ts-module) vs. parcel (ts-module) fixture webpack (ts-module) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js compilation error syntax error
import x

import().default
tla-esm.js

tla-esm.mjs
'default' syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } { [__esModule], default }
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } syntax error
await import() === require()

import * as x; x === await import()
default-export.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() tla-esm.js

tla-esm.mjs
false syntax error
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true syntax error

webpack (.ts with "type": "module") vs. vite (.mjs)

webpack (ts-module) vs. vite (mjs) fixture webpack (ts-module) vite (mjs)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. vite (.js)

webpack (ts-module) vs. vite (js) fixture webpack (ts-module) vite (js)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. vite (.js with "type": "module")

webpack (ts-module) vs. vite (js-module) fixture webpack (ts-module) vite (js-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. vite (.mts)

webpack (ts-module) vs. vite (mts) fixture webpack (ts-module) vite (mts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. vite (.ts)

webpack (ts-module) vs. vite (ts) fixture webpack (ts-module) vite (ts)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

webpack (.ts with "type": "module") vs. vite (.ts with "type": "module")

webpack (ts-module) vs. vite (ts-module) fixture webpack (ts-module) vite (ts-module)
import x

import().default
tla-esm.js

tla-esm.mjs
'default' compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G], [Module] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js compilation error not fully bundled
x = require() tla-esm.js

tla-esm.mjs
Promise { { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack exports)]: { [__esModule], default: [G], named: [G], [Module] }, [Symbol(webpack queues)]: { [Function (anonymous)] [length]: 1, [name]: '' } } not fully bundled
await import() === require() default-export.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
true not fully bundled
await import() === require() tla-esm.js

tla-esm.mjs
false compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() tla-esm.js

tla-esm.mjs
true compilation error

rollup (.mjs) vs. rollup (.js)

rollup (mjs) vs. rollup (js) fixture rollup (mjs) rollup (js)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false

rollup (.mjs) vs. rollup (.js with "type": "module")

rollup (mjs) vs. rollup (js-module) fixture rollup (mjs) rollup (js-module)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false

rollup (.mjs) vs. rollup (.ts)

rollup (mjs) vs. rollup (ts) fixture rollup (mjs) rollup (ts)
import x default-export-esm.js 'default' syntax error
import x default-export-esm.mjs 'default' require(esm) not allowed
import x tla-esModule.js

tla-esm.js
compilation error syntax error
import x tla-esm.mjs compilation error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed

rollup (.mjs) vs. esbuild (.mjs)

rollup (mjs) vs. esbuild (mjs) fixture rollup (mjs) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mjs) vs. esbuild (.js)

rollup (mjs) vs. esbuild (js) fixture rollup (mjs) esbuild (js)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mjs) vs. esbuild (.js with "type": "module")

rollup (mjs) vs. esbuild (js-module) fixture rollup (mjs) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mjs) vs. esbuild (.mts)

rollup (mjs) vs. esbuild (mts) fixture rollup (mjs) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mjs) vs. esbuild (.ts)

rollup (mjs) vs. esbuild (ts) fixture rollup (mjs) esbuild (ts)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mjs) vs. esbuild (.ts with "type": "module")

rollup (mjs) vs. esbuild (ts-module) fixture rollup (mjs) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mjs) vs. parcel (.mjs)

rollup (mjs) vs. parcel (mjs) fixture rollup (mjs) parcel (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mjs) vs. parcel (.js)

rollup (mjs) vs. parcel (js) fixture rollup (mjs) parcel (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mjs) vs. parcel (.js with "type": "module")

rollup (mjs) vs. parcel (js-module) fixture rollup (mjs) parcel (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mjs) vs. parcel (.mts)

rollup (mjs) vs. parcel (mts) fixture rollup (mjs) parcel (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mjs) vs. parcel (.ts)

rollup (mjs) vs. parcel (ts) fixture rollup (mjs) parcel (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mjs) vs. parcel (.ts with "type": "module")

rollup (mjs) vs. parcel (ts-module) fixture rollup (mjs) parcel (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mjs) vs. vite (.mjs)

rollup (mjs) vs. vite (mjs) fixture rollup (mjs) vite (mjs)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mjs) vs. vite (.js)

rollup (mjs) vs. vite (js) fixture rollup (mjs) vite (js)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mjs) vs. vite (.js with "type": "module")

rollup (mjs) vs. vite (js-module) fixture rollup (mjs) vite (js-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mjs) vs. vite (.mts)

rollup (mjs) vs. vite (mts) fixture rollup (mjs) vite (mts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mjs) vs. vite (.ts)

rollup (mjs) vs. vite (ts) fixture rollup (mjs) vite (ts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mjs) vs. vite (.ts with "type": "module")

rollup (mjs) vs. vite (ts-module) fixture rollup (mjs) vite (ts-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.js) vs. rollup (.mts)

rollup (js) vs. rollup (mts) fixture rollup (js) rollup (mts)
x = require() default-export-esm.js { [__esModule], default: [G] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G] } require(esm) not allowed
x = require() tla-esModule.js

tla-esm.js
compilation error syntax error
x = require() tla-esm.mjs compilation error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed

rollup (.js) vs. rollup (.ts)

rollup (js) vs. rollup (ts) fixture rollup (js) rollup (ts)
import x default-export-esm.js 'default' syntax error
import x default-export-esm.mjs 'default' require(esm) not allowed
import x

x = require()
tla-esModule.js

tla-esm.js
compilation error syntax error
import x

x = require()
tla-esm.mjs compilation error require(esm) not allowed
x = require() default-export-esm.js { [__esModule], default: [G] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G] } require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed

rollup (.js) vs. rollup (.ts with "type": "module")

rollup (js) vs. rollup (ts-module) fixture rollup (js) rollup (ts-module)
x = require() default-export-esm.js { [__esModule], default: [G] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G] } require(esm) not allowed
x = require() tla-esModule.js

tla-esm.js
compilation error syntax error
x = require() tla-esm.mjs compilation error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed

rollup (.js) vs. esbuild (.mjs)

rollup (js) vs. esbuild (mjs) fixture rollup (js) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js) vs. esbuild (.js)

rollup (js) vs. esbuild (js) fixture rollup (js) esbuild (js)
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js) vs. esbuild (.js with "type": "module")

rollup (js) vs. esbuild (js-module) fixture rollup (js) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js) vs. esbuild (.mts)

rollup (js) vs. esbuild (mts) fixture rollup (js) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js) vs. esbuild (.ts)

rollup (js) vs. esbuild (ts) fixture rollup (js) esbuild (ts)
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js) vs. esbuild (.ts with "type": "module")

rollup (js) vs. esbuild (ts-module) fixture rollup (js) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js) vs. parcel (.mjs)

rollup (js) vs. parcel (mjs) fixture rollup (js) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js) vs. parcel (.js)

rollup (js) vs. parcel (js) fixture rollup (js) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js) vs. parcel (.js with "type": "module")

rollup (js) vs. parcel (js-module) fixture rollup (js) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js) vs. parcel (.mts)

rollup (js) vs. parcel (mts) fixture rollup (js) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js) vs. parcel (.ts)

rollup (js) vs. parcel (ts) fixture rollup (js) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js) vs. parcel (.ts with "type": "module")

rollup (js) vs. parcel (ts-module) fixture rollup (js) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js) vs. vite (.mjs)

rollup (js) vs. vite (mjs) fixture rollup (js) vite (mjs)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js) vs. vite (.js)

rollup (js) vs. vite (js) fixture rollup (js) vite (js)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js) vs. vite (.js with "type": "module")

rollup (js) vs. vite (js-module) fixture rollup (js) vite (js-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js) vs. vite (.mts)

rollup (js) vs. vite (mts) fixture rollup (js) vite (mts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js) vs. vite (.ts)

rollup (js) vs. vite (ts) fixture rollup (js) vite (ts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js) vs. vite (.ts with "type": "module")

rollup (js) vs. vite (ts-module) fixture rollup (js) vite (ts-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js with "type": "module") vs. rollup (.mts)

rollup (js-module) vs. rollup (mts) fixture rollup (js-module) rollup (mts)
x = require() default-export-esm.js { [__esModule], default: [G] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G] } require(esm) not allowed
x = require() tla-esModule.js

tla-esm.js
compilation error syntax error
x = require() tla-esm.mjs compilation error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed

rollup (.js with "type": "module") vs. rollup (.ts)

rollup (js-module) vs. rollup (ts) fixture rollup (js-module) rollup (ts)
import x default-export-esm.js 'default' syntax error
import x default-export-esm.mjs 'default' require(esm) not allowed
import x

x = require()
tla-esModule.js

tla-esm.js
compilation error syntax error
import x

x = require()
tla-esm.mjs compilation error require(esm) not allowed
x = require() default-export-esm.js { [__esModule], default: [G] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G] } require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed

rollup (.js with "type": "module") vs. rollup (.ts with "type": "module")

rollup (js-module) vs. rollup (ts-module) fixture rollup (js-module) rollup (ts-module)
x = require() default-export-esm.js { [__esModule], default: [G] } syntax error
x = require() default-export-esm.mjs { [__esModule], default: [G] } require(esm) not allowed
x = require() tla-esModule.js

tla-esm.js
compilation error syntax error
x = require() tla-esm.mjs compilation error require(esm) not allowed
await import() === require() default-export-esm.js false syntax error
await import() === require() default-export-esm.mjs false require(esm) not allowed

rollup (.js with "type": "module") vs. esbuild (.mjs)

rollup (js-module) vs. esbuild (mjs) fixture rollup (js-module) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js with "type": "module") vs. esbuild (.js)

rollup (js-module) vs. esbuild (js) fixture rollup (js-module) esbuild (js)
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js with "type": "module") vs. esbuild (.js with "type": "module")

rollup (js-module) vs. esbuild (js-module) fixture rollup (js-module) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js with "type": "module") vs. esbuild (.mts)

rollup (js-module) vs. esbuild (mts) fixture rollup (js-module) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js with "type": "module") vs. esbuild (.ts)

rollup (js-module) vs. esbuild (ts) fixture rollup (js-module) esbuild (ts)
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js with "type": "module") vs. esbuild (.ts with "type": "module")

rollup (js-module) vs. esbuild (ts-module) fixture rollup (js-module) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.js with "type": "module") vs. parcel (.mjs)

rollup (js-module) vs. parcel (mjs) fixture rollup (js-module) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js with "type": "module") vs. parcel (.js)

rollup (js-module) vs. parcel (js) fixture rollup (js-module) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js with "type": "module") vs. parcel (.js with "type": "module")

rollup (js-module) vs. parcel (js-module) fixture rollup (js-module) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js with "type": "module") vs. parcel (.mts)

rollup (js-module) vs. parcel (mts) fixture rollup (js-module) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js with "type": "module") vs. parcel (.ts)

rollup (js-module) vs. parcel (ts) fixture rollup (js-module) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js with "type": "module") vs. parcel (.ts with "type": "module")

rollup (js-module) vs. parcel (ts-module) fixture rollup (js-module) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true

rollup (.js with "type": "module") vs. vite (.mjs)

rollup (js-module) vs. vite (mjs) fixture rollup (js-module) vite (mjs)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js with "type": "module") vs. vite (.js)

rollup (js-module) vs. vite (js) fixture rollup (js-module) vite (js)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js with "type": "module") vs. vite (.js with "type": "module")

rollup (js-module) vs. vite (js-module) fixture rollup (js-module) vite (js-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js with "type": "module") vs. vite (.mts)

rollup (js-module) vs. vite (mts) fixture rollup (js-module) vite (mts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js with "type": "module") vs. vite (.ts)

rollup (js-module) vs. vite (ts) fixture rollup (js-module) vite (ts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.js with "type": "module") vs. vite (.ts with "type": "module")

rollup (js-module) vs. vite (ts-module) fixture rollup (js-module) vite (ts-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled

rollup (.mts) vs. rollup (.ts)

rollup (mts) vs. rollup (ts) fixture rollup (mts) rollup (ts)
import x default-export-esm.js 'default' syntax error
import x default-export-esm.mjs 'default' require(esm) not allowed
import x tla-esModule.js

tla-esm.js
compilation error syntax error
import x tla-esm.mjs compilation error require(esm) not allowed
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
true false
import * as x; x === await import() default-export-esm.js true syntax error
import * as x; x === await import() default-export-esm.mjs true require(esm) not allowed

rollup (.mts) vs. esbuild (.mjs)

rollup (mts) vs. esbuild (mjs) fixture rollup (mts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mts) vs. esbuild (.js)

rollup (mts) vs. esbuild (js) fixture rollup (mts) esbuild (js)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mts) vs. esbuild (.js with "type": "module")

rollup (mts) vs. esbuild (js-module) fixture rollup (mts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mts) vs. esbuild (.mts)

rollup (mts) vs. esbuild (mts) fixture rollup (mts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mts) vs. esbuild (.ts)

rollup (mts) vs. esbuild (ts) fixture rollup (mts) esbuild (ts)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mts) vs. esbuild (.ts with "type": "module")

rollup (mts) vs. esbuild (ts-module) fixture rollup (mts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.mts) vs. parcel (.mjs)

rollup (mts) vs. parcel (mjs) fixture rollup (mts) parcel (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mts) vs. parcel (.js)

rollup (mts) vs. parcel (js) fixture rollup (mts) parcel (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mts) vs. parcel (.js with "type": "module")

rollup (mts) vs. parcel (js-module) fixture rollup (mts) parcel (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mts) vs. parcel (.mts)

rollup (mts) vs. parcel (mts) fixture rollup (mts) parcel (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mts) vs. parcel (.ts)

rollup (mts) vs. parcel (ts) fixture rollup (mts) parcel (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mts) vs. parcel (.ts with "type": "module")

rollup (mts) vs. parcel (ts-module) fixture rollup (mts) parcel (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.mts) vs. vite (.mjs)

rollup (mts) vs. vite (mjs) fixture rollup (mts) vite (mjs)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mts) vs. vite (.js)

rollup (mts) vs. vite (js) fixture rollup (mts) vite (js)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mts) vs. vite (.js with "type": "module")

rollup (mts) vs. vite (js-module) fixture rollup (mts) vite (js-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mts) vs. vite (.mts)

rollup (mts) vs. vite (mts) fixture rollup (mts) vite (mts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mts) vs. vite (.ts)

rollup (mts) vs. vite (ts) fixture rollup (mts) vite (ts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.mts) vs. vite (.ts with "type": "module")

rollup (mts) vs. vite (ts-module) fixture rollup (mts) vite (ts-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.ts) vs. rollup (.ts with "type": "module")

rollup (ts) vs. rollup (ts-module) fixture rollup (ts) rollup (ts-module)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x tla-esModule.js

tla-esm.js
syntax error compilation error
import x tla-esm.mjs require(esm) not allowed compilation error
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. esbuild (.mjs)

rollup (ts) vs. esbuild (mjs) fixture rollup (ts) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

x = require()
tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. esbuild (.js)

rollup (ts) vs. esbuild (js) fixture rollup (ts) esbuild (js)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

x = require()
tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. esbuild (.js with "type": "module")

rollup (ts) vs. esbuild (js-module) fixture rollup (ts) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

x = require()
tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. esbuild (.mts)

rollup (ts) vs. esbuild (mts) fixture rollup (ts) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

x = require()
tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. esbuild (.ts)

rollup (ts) vs. esbuild (ts) fixture rollup (ts) esbuild (ts)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

x = require()
tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. esbuild (.ts with "type": "module")

rollup (ts) vs. esbuild (ts-module) fixture rollup (ts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esModule.js

tla-esm.js
syntax error compilation error
import x

x = require()
tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export-esModule.js true false
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. parcel (.mjs)

rollup (ts) vs. parcel (mjs) fixture rollup (ts) parcel (mjs)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esm.mjs require(esm) not allowed syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js syntax error true
await import() === require()

import * as x; x === await import()
default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true

rollup (.ts) vs. parcel (.js)

rollup (ts) vs. parcel (js) fixture rollup (ts) parcel (js)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esm.mjs require(esm) not allowed syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js syntax error true
await import() === require()

import * as x; x === await import()
default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true

rollup (.ts) vs. parcel (.js with "type": "module")

rollup (ts) vs. parcel (js-module) fixture rollup (ts) parcel (js-module)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esm.mjs require(esm) not allowed syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js syntax error true
await import() === require()

import * as x; x === await import()
default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true

rollup (.ts) vs. parcel (.mts)

rollup (ts) vs. parcel (mts) fixture rollup (ts) parcel (mts)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esm.mjs require(esm) not allowed syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js syntax error true
await import() === require()

import * as x; x === await import()
default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true

rollup (.ts) vs. parcel (.ts)

rollup (ts) vs. parcel (ts) fixture rollup (ts) parcel (ts)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esm.mjs require(esm) not allowed syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js syntax error true
await import() === require()

import * as x; x === await import()
default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true

rollup (.ts) vs. parcel (.ts with "type": "module")

rollup (ts) vs. parcel (ts-module) fixture rollup (ts) parcel (ts-module)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x

x = require()
tla-esm.mjs require(esm) not allowed syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require()

import * as x; x === await import()
default-export-esm.js syntax error true
await import() === require()

import * as x; x === await import()
default-export-esm.mjs require(esm) not allowed true
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true

rollup (.ts) vs. vite (.mjs)

rollup (ts) vs. vite (mjs) fixture rollup (ts) vite (mjs)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x tla-esModule.js

tla-esm.js
syntax error compilation error
import x tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. vite (.js)

rollup (ts) vs. vite (js) fixture rollup (ts) vite (js)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x tla-esModule.js

tla-esm.js
syntax error compilation error
import x tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. vite (.js with "type": "module")

rollup (ts) vs. vite (js-module) fixture rollup (ts) vite (js-module)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x tla-esModule.js

tla-esm.js
syntax error compilation error
import x tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. vite (.mts)

rollup (ts) vs. vite (mts) fixture rollup (ts) vite (mts)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x tla-esModule.js

tla-esm.js
syntax error compilation error
import x tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. vite (.ts)

rollup (ts) vs. vite (ts) fixture rollup (ts) vite (ts)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x tla-esModule.js

tla-esm.js
syntax error compilation error
import x tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts) vs. vite (.ts with "type": "module")

rollup (ts) vs. vite (ts-module) fixture rollup (ts) vite (ts-module)
import x default-export-esm.js syntax error 'default'
import x default-export-esm.mjs require(esm) not allowed 'default'
import x tla-esModule.js

tla-esm.js
syntax error compilation error
import x tla-esm.mjs require(esm) not allowed compilation error
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled
import * as x; x === await import() default-export.js

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export-esm.js syntax error true
import * as x; x === await import() default-export-esm.mjs require(esm) not allowed true

rollup (.ts with "type": "module") vs. esbuild (.mjs)

rollup (ts-module) vs. esbuild (mjs) fixture rollup (ts-module) esbuild (mjs)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.ts with "type": "module") vs. esbuild (.js)

rollup (ts-module) vs. esbuild (js) fixture rollup (ts-module) esbuild (js)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.ts with "type": "module") vs. esbuild (.js with "type": "module")

rollup (ts-module) vs. esbuild (js-module) fixture rollup (ts-module) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.ts with "type": "module") vs. esbuild (.mts)

rollup (ts-module) vs. esbuild (mts) fixture rollup (ts-module) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.ts with "type": "module") vs. esbuild (.ts)

rollup (ts-module) vs. esbuild (ts) fixture rollup (ts-module) esbuild (ts)
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.ts with "type": "module") vs. esbuild (.ts with "type": "module")

rollup (ts-module) vs. esbuild (ts-module) fixture rollup (ts-module) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }
x = require() default-export-esm.js syntax error { [__esModule], default: [G] }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default: [G] }
x = require() tla-esModule.js

tla-esm.js
syntax error compilation error
x = require() tla-esm.mjs require(esm) not allowed compilation error
await import() === require() default-export-esm.js syntax error false
await import() === require() default-export-esm.mjs require(esm) not allowed false
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
true false

rollup (.ts with "type": "module") vs. parcel (.mjs)

rollup (ts-module) vs. parcel (mjs) fixture rollup (ts-module) parcel (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.ts with "type": "module") vs. parcel (.js)

rollup (ts-module) vs. parcel (js) fixture rollup (ts-module) parcel (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.ts with "type": "module") vs. parcel (.js with "type": "module")

rollup (ts-module) vs. parcel (js-module) fixture rollup (ts-module) parcel (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.ts with "type": "module") vs. parcel (.mts)

rollup (ts-module) vs. parcel (mts) fixture rollup (ts-module) parcel (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.ts with "type": "module") vs. parcel (.ts)

rollup (ts-module) vs. parcel (ts) fixture rollup (ts-module) parcel (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.ts with "type": "module") vs. parcel (.ts with "type": "module")

rollup (ts-module) vs. parcel (ts-module) fixture rollup (ts-module) parcel (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js syntax error { [__esModule], default }
x = require() default-export-esm.mjs require(esm) not allowed { [__esModule], default }
x = require() tla-esm.mjs require(esm) not allowed syntax error
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true
await import() === require() default-export-esm.js syntax error true
await import() === require() default-export-esm.mjs require(esm) not allowed true

rollup (.ts with "type": "module") vs. vite (.mjs)

rollup (ts-module) vs. vite (mjs) fixture rollup (ts-module) vite (mjs)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.ts with "type": "module") vs. vite (.js)

rollup (ts-module) vs. vite (js) fixture rollup (ts-module) vite (js)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.ts with "type": "module") vs. vite (.js with "type": "module")

rollup (ts-module) vs. vite (js-module) fixture rollup (ts-module) vite (js-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.ts with "type": "module") vs. vite (.mts)

rollup (ts-module) vs. vite (mts) fixture rollup (ts-module) vite (mts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.ts with "type": "module") vs. vite (.ts)

rollup (ts-module) vs. vite (ts) fixture rollup (ts-module) vite (ts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

rollup (.ts with "type": "module") vs. vite (.ts with "type": "module")

rollup (ts-module) vs. vite (ts-module) fixture rollup (ts-module) vite (ts-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

tla-esModule.js

tla-esm.js
syntax error not fully bundled
x = require() default-export-esm.mjs

tla-esm.mjs
require(esm) not allowed not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
await import() === require() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false not fully bundled
await import() === require() default-export-esm.js syntax error not fully bundled
await import() === require() default-export-esm.mjs require(esm) not allowed not fully bundled

esbuild (.mjs) vs. esbuild (.js)

esbuild (mjs) vs. esbuild (js) fixture esbuild (mjs) esbuild (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'

esbuild (.mjs) vs. esbuild (.ts)

esbuild (mjs) vs. esbuild (ts) fixture esbuild (mjs) esbuild (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'

esbuild (.mjs) vs. parcel (.mjs)

esbuild (mjs) vs. parcel (mjs) fixture esbuild (mjs) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. parcel (.js)

esbuild (mjs) vs. parcel (js) fixture esbuild (mjs) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. parcel (.js with "type": "module")

esbuild (mjs) vs. parcel (js-module) fixture esbuild (mjs) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. parcel (.mts)

esbuild (mjs) vs. parcel (mts) fixture esbuild (mjs) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. parcel (.ts)

esbuild (mjs) vs. parcel (ts) fixture esbuild (mjs) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. parcel (.ts with "type": "module")

esbuild (mjs) vs. parcel (ts-module) fixture esbuild (mjs) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. vite (.mjs)

esbuild (mjs) vs. vite (mjs) fixture esbuild (mjs) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. vite (.js)

esbuild (mjs) vs. vite (js) fixture esbuild (mjs) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. vite (.js with "type": "module")

esbuild (mjs) vs. vite (js-module) fixture esbuild (mjs) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. vite (.mts)

esbuild (mjs) vs. vite (mts) fixture esbuild (mjs) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. vite (.ts)

esbuild (mjs) vs. vite (ts) fixture esbuild (mjs) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mjs) vs. vite (.ts with "type": "module")

esbuild (mjs) vs. vite (ts-module) fixture esbuild (mjs) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. esbuild (.js with "type": "module")

esbuild (js) vs. esbuild (js-module) fixture esbuild (js) esbuild (js-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }

esbuild (.js) vs. esbuild (.mts)

esbuild (js) vs. esbuild (mts) fixture esbuild (js) esbuild (mts)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }

esbuild (.js) vs. esbuild (.ts with "type": "module")

esbuild (js) vs. esbuild (ts-module) fixture esbuild (js) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }

esbuild (.js) vs. parcel (.mjs)

esbuild (js) vs. parcel (mjs) fixture esbuild (js) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. parcel (.js)

esbuild (js) vs. parcel (js) fixture esbuild (js) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. parcel (.js with "type": "module")

esbuild (js) vs. parcel (js-module) fixture esbuild (js) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. parcel (.mts)

esbuild (js) vs. parcel (mts) fixture esbuild (js) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. parcel (.ts)

esbuild (js) vs. parcel (ts) fixture esbuild (js) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. parcel (.ts with "type": "module")

esbuild (js) vs. parcel (ts-module) fixture esbuild (js) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. vite (.mjs)

esbuild (js) vs. vite (mjs) fixture esbuild (js) vite (mjs)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. vite (.js)

esbuild (js) vs. vite (js) fixture esbuild (js) vite (js)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. vite (.js with "type": "module")

esbuild (js) vs. vite (js-module) fixture esbuild (js) vite (js-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. vite (.mts)

esbuild (js) vs. vite (mts) fixture esbuild (js) vite (mts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. vite (.ts)

esbuild (js) vs. vite (ts) fixture esbuild (js) vite (ts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js) vs. vite (.ts with "type": "module")

esbuild (js) vs. vite (ts-module) fixture esbuild (js) vite (ts-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. esbuild (.ts)

esbuild (js-module) vs. esbuild (ts) fixture esbuild (js-module) esbuild (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'

esbuild (.js with "type": "module") vs. parcel (.mjs)

esbuild (js-module) vs. parcel (mjs) fixture esbuild (js-module) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. parcel (.js)

esbuild (js-module) vs. parcel (js) fixture esbuild (js-module) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. parcel (.js with "type": "module")

esbuild (js-module) vs. parcel (js-module) fixture esbuild (js-module) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. parcel (.mts)

esbuild (js-module) vs. parcel (mts) fixture esbuild (js-module) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. parcel (.ts)

esbuild (js-module) vs. parcel (ts) fixture esbuild (js-module) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. parcel (.ts with "type": "module")

esbuild (js-module) vs. parcel (ts-module) fixture esbuild (js-module) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. vite (.mjs)

esbuild (js-module) vs. vite (mjs) fixture esbuild (js-module) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. vite (.js)

esbuild (js-module) vs. vite (js) fixture esbuild (js-module) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. vite (.js with "type": "module")

esbuild (js-module) vs. vite (js-module) fixture esbuild (js-module) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. vite (.mts)

esbuild (js-module) vs. vite (mts) fixture esbuild (js-module) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. vite (.ts)

esbuild (js-module) vs. vite (ts) fixture esbuild (js-module) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.js with "type": "module") vs. vite (.ts with "type": "module")

esbuild (js-module) vs. vite (ts-module) fixture esbuild (js-module) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. esbuild (.ts)

esbuild (mts) vs. esbuild (ts) fixture esbuild (mts) esbuild (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'

esbuild (.mts) vs. parcel (.mjs)

esbuild (mts) vs. parcel (mjs) fixture esbuild (mts) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. parcel (.js)

esbuild (mts) vs. parcel (js) fixture esbuild (mts) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. parcel (.js with "type": "module")

esbuild (mts) vs. parcel (js-module) fixture esbuild (mts) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. parcel (.mts)

esbuild (mts) vs. parcel (mts) fixture esbuild (mts) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. parcel (.ts)

esbuild (mts) vs. parcel (ts) fixture esbuild (mts) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. parcel (.ts with "type": "module")

esbuild (mts) vs. parcel (ts-module) fixture esbuild (mts) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. vite (.mjs)

esbuild (mts) vs. vite (mjs) fixture esbuild (mts) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. vite (.js)

esbuild (mts) vs. vite (js) fixture esbuild (mts) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. vite (.js with "type": "module")

esbuild (mts) vs. vite (js-module) fixture esbuild (mts) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. vite (.mts)

esbuild (mts) vs. vite (mts) fixture esbuild (mts) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. vite (.ts)

esbuild (mts) vs. vite (ts) fixture esbuild (mts) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.mts) vs. vite (.ts with "type": "module")

esbuild (mts) vs. vite (ts-module) fixture esbuild (mts) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. esbuild (.ts with "type": "module")

esbuild (ts) vs. esbuild (ts-module) fixture esbuild (ts) esbuild (ts-module)
import x

import().default
default-export-esModule.js 'default' { [__esModule], default }

esbuild (.ts) vs. parcel (.mjs)

esbuild (ts) vs. parcel (mjs) fixture esbuild (ts) parcel (mjs)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. parcel (.js)

esbuild (ts) vs. parcel (js) fixture esbuild (ts) parcel (js)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. parcel (.js with "type": "module")

esbuild (ts) vs. parcel (js-module) fixture esbuild (ts) parcel (js-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. parcel (.mts)

esbuild (ts) vs. parcel (mts) fixture esbuild (ts) parcel (mts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. parcel (.ts)

esbuild (ts) vs. parcel (ts) fixture esbuild (ts) parcel (ts)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. parcel (.ts with "type": "module")

esbuild (ts) vs. parcel (ts-module) fixture esbuild (ts) parcel (ts-module)
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. vite (.mjs)

esbuild (ts) vs. vite (mjs) fixture esbuild (ts) vite (mjs)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. vite (.js)

esbuild (ts) vs. vite (js) fixture esbuild (ts) vite (js)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. vite (.js with "type": "module")

esbuild (ts) vs. vite (js-module) fixture esbuild (ts) vite (js-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. vite (.mts)

esbuild (ts) vs. vite (mts) fixture esbuild (ts) vite (mts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. vite (.ts)

esbuild (ts) vs. vite (ts) fixture esbuild (ts) vite (ts)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts) vs. vite (.ts with "type": "module")

esbuild (ts) vs. vite (ts-module) fixture esbuild (ts) vite (ts-module)
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. parcel (.mjs)

esbuild (ts-module) vs. parcel (mjs) fixture esbuild (ts-module) parcel (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. parcel (.js)

esbuild (ts-module) vs. parcel (js) fixture esbuild (ts-module) parcel (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. parcel (.js with "type": "module")

esbuild (ts-module) vs. parcel (js-module) fixture esbuild (ts-module) parcel (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. parcel (.mts)

esbuild (ts-module) vs. parcel (mts) fixture esbuild (ts-module) parcel (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. parcel (.ts)

esbuild (ts-module) vs. parcel (ts) fixture esbuild (ts-module) parcel (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. parcel (.ts with "type": "module")

esbuild (ts-module) vs. parcel (ts-module) fixture esbuild (ts-module) parcel (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
import x

import().default

x = require()

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error syntax error
import().default default-export.js { default } 'default'
import().default single-object-export.js { named } undefined
import().default single-object-with-default-export.js { named, default } 'default'
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } { [__esModule], default }
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false true
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. vite (.mjs)

esbuild (ts-module) vs. vite (mjs) fixture esbuild (ts-module) vite (mjs)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. vite (.js)

esbuild (ts-module) vs. vite (js) fixture esbuild (ts-module) vite (js)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. vite (.js with "type": "module")

esbuild (ts-module) vs. vite (js-module) fixture esbuild (ts-module) vite (js-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. vite (.mts)

esbuild (ts-module) vs. vite (mts) fixture esbuild (ts-module) vite (mts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. vite (.ts)

esbuild (ts-module) vs. vite (ts) fixture esbuild (ts-module) vite (ts)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

esbuild (.ts with "type": "module") vs. vite (.ts with "type": "module")

esbuild (ts-module) vs. vite (ts-module) fixture esbuild (ts-module) vite (ts-module)
import x

import().default
default-export-esModule.js { [__esModule], default } 'default'
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js { [__esModule], default } not fully bundled
x = require() default-export-esm.js

default-export-esm.mjs
{ [__esModule], default: [G] } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
compilation error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
false not fully bundled
import * as x; x === await import() default-export.js

default-export-esModule.js

single-object-export.js

single-object-with-default-export.js
false true

parcel (.mjs) vs. vite (.mjs)

parcel (mjs) vs. vite (mjs) fixture parcel (mjs) vite (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mjs) vs. vite (.js)

parcel (mjs) vs. vite (js) fixture parcel (mjs) vite (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mjs) vs. vite (.js with "type": "module")

parcel (mjs) vs. vite (js-module) fixture parcel (mjs) vite (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mjs) vs. vite (.mts)

parcel (mjs) vs. vite (mts) fixture parcel (mjs) vite (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mjs) vs. vite (.ts)

parcel (mjs) vs. vite (ts) fixture parcel (mjs) vite (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mjs) vs. vite (.ts with "type": "module")

parcel (mjs) vs. vite (ts-module) fixture parcel (mjs) vite (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js) vs. vite (.mjs)

parcel (js) vs. vite (mjs) fixture parcel (js) vite (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js) vs. vite (.js)

parcel (js) vs. vite (js) fixture parcel (js) vite (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js) vs. vite (.js with "type": "module")

parcel (js) vs. vite (js-module) fixture parcel (js) vite (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js) vs. vite (.mts)

parcel (js) vs. vite (mts) fixture parcel (js) vite (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js) vs. vite (.ts)

parcel (js) vs. vite (ts) fixture parcel (js) vite (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js) vs. vite (.ts with "type": "module")

parcel (js) vs. vite (ts-module) fixture parcel (js) vite (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js with "type": "module") vs. vite (.mjs)

parcel (js-module) vs. vite (mjs) fixture parcel (js-module) vite (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js with "type": "module") vs. vite (.js)

parcel (js-module) vs. vite (js) fixture parcel (js-module) vite (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js with "type": "module") vs. vite (.js with "type": "module")

parcel (js-module) vs. vite (js-module) fixture parcel (js-module) vite (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js with "type": "module") vs. vite (.mts)

parcel (js-module) vs. vite (mts) fixture parcel (js-module) vite (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js with "type": "module") vs. vite (.ts)

parcel (js-module) vs. vite (ts) fixture parcel (js-module) vite (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.js with "type": "module") vs. vite (.ts with "type": "module")

parcel (js-module) vs. vite (ts-module) fixture parcel (js-module) vite (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mts) vs. vite (.mjs)

parcel (mts) vs. vite (mjs) fixture parcel (mts) vite (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mts) vs. vite (.js)

parcel (mts) vs. vite (js) fixture parcel (mts) vite (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mts) vs. vite (.js with "type": "module")

parcel (mts) vs. vite (js-module) fixture parcel (mts) vite (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mts) vs. vite (.mts)

parcel (mts) vs. vite (mts) fixture parcel (mts) vite (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mts) vs. vite (.ts)

parcel (mts) vs. vite (ts) fixture parcel (mts) vite (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.mts) vs. vite (.ts with "type": "module")

parcel (mts) vs. vite (ts-module) fixture parcel (mts) vite (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts) vs. vite (.mjs)

parcel (ts) vs. vite (mjs) fixture parcel (ts) vite (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts) vs. vite (.js)

parcel (ts) vs. vite (js) fixture parcel (ts) vite (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts) vs. vite (.js with "type": "module")

parcel (ts) vs. vite (js-module) fixture parcel (ts) vite (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts) vs. vite (.mts)

parcel (ts) vs. vite (mts) fixture parcel (ts) vite (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts) vs. vite (.ts)

parcel (ts) vs. vite (ts) fixture parcel (ts) vite (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts) vs. vite (.ts with "type": "module")

parcel (ts) vs. vite (ts-module) fixture parcel (ts) vite (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts with "type": "module") vs. vite (.mjs)

parcel (ts-module) vs. vite (mjs) fixture parcel (ts-module) vite (mjs)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts with "type": "module") vs. vite (.js)

parcel (ts-module) vs. vite (js) fixture parcel (ts-module) vite (js)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts with "type": "module") vs. vite (.js with "type": "module")

parcel (ts-module) vs. vite (js-module) fixture parcel (ts-module) vite (js-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts with "type": "module") vs. vite (.mts)

parcel (ts-module) vs. vite (mts) fixture parcel (ts-module) vite (mts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts with "type": "module") vs. vite (.ts)

parcel (ts-module) vs. vite (ts) fixture parcel (ts-module) vite (ts)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled

parcel (.ts with "type": "module") vs. vite (.ts with "type": "module")

parcel (ts-module) vs. vite (ts-module) fixture parcel (ts-module) vite (ts-module)
import x

import().default

await import() === require()

import * as x; x === await import()
tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error compilation error
import().default default-export.js 'default' { default }
import().default single-object-export.js undefined { named }
import().default single-object-with-default-export.js 'default' { named, default }
x = require() default-export.js { default } not fully bundled
x = require() default-export-esModule.js

default-export-esm.js

default-export-esm.mjs
{ [__esModule], default } not fully bundled
x = require() single-object-export.js { named } not fully bundled
x = require() single-object-with-default-export.js { named, default } not fully bundled
x = require() tla-esModule.js

tla-esm.js

tla-esm.mjs
syntax error not fully bundled
await import() === require() default-export.js

default-export-esModule.js

default-export-esm.js

default-export-esm.mjs

single-object-export.js

single-object-with-default-export.js
true not fully bundled