esm v3.x doesn't throw SyntaxError anymore for non-existing exports

Created on 22 Mar 2018  路  3Comments  路  Source: standard-things/esm

repro:

// index.js
import { foo2 } from './bar'
// bar.js
export const foo = true
// with esm default options
node -r esm index.js

the std/esm v0.25.4 line still throws (tested with mode: "js")

bug

Most helpful comment

v3.0.8 is released 馃帀

All 3 comments

Hi @dnalborczyk!

This is part of the cjs interop. I can experiment with disabling this though as I've been bit by not getting notified of missing exports too.

I thought I tried to turn off cjs interop for the above to test in v3 as well if I'm not mistaken. I might have to check that again ...

that would be a REALLY nice to have if technically feasible, otherwise it unfortunately removes one of the advantages of using esmodules :confused:

v3.0.8 is released 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deepsweet picture deepsweet  路  3Comments

mAAdhaTTah picture mAAdhaTTah  路  3Comments

clock157 picture clock157  路  3Comments

bensampaio picture bensampaio  路  3Comments

Mensu picture Mensu  路  3Comments