Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from #84

Closed
aleclarson opened this issue Sep 13, 2022 · 2 comments

Comments

@aleclarson
Copy link

aleclarson commented Sep 13, 2022

Getting this…

[jiti] SyntaxError: /: Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`.

    at File.buildCodeFrameError (/Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:13:11875)
    at NodePath.buildCodeFrameError (/Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:1946:61785)
    at assertExportSpecifier (/Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:146:10745)
    at /Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:146:6337
    at Array.forEach (<anonymous>)
    at /Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:146:6321
    at Array.forEach (<anonymous>)
    at initializeReexports.initializeReexports (/Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:146:4937)
    at exports.default (/Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:146:7651)
    at exports.rewriteModuleStatementsAndPrepareHeader (/Users/alec/dev/project/node_modules/.pnpm/jiti@1.15.0/node_modules/jiti/dist/babel.js:133:1316) {
  code: 'BABEL_TRANSFORM_ERROR'
}

…when doing something like:

export * as foo from './foo'
@BTBMan
Copy link

BTBMan commented Sep 19, 2022

The same phenomenon

@pi0 pi0 closed this as completed in ebb59cf Sep 19, 2022
@pi0
Copy link
Member

pi0 commented Sep 19, 2022

Should be supported in latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants