benjamn / reify

Enable ECMAScript 2015 modules in Node today. No caveats. Full stop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested files in node modules don't get properly compiled

GianlucaGuarini opened this issue · comments

Requiring nested files with exports statements in npm dependencies will throw syntax errors SyntaxError: Unexpected token export

For example:

import {IS_BOOLEAN} from '@riotjs/parser/src/constants'
console.log(IS_BOOLEAN)

Is it a bug or it's a design decision?

Thank you for this awesome script

I switched to to esm and this issue got stale no need to keep it open. Thank you anyways