Skip to content

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

Closed

Description

@aleclarson

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/[email protected]/node_modules/jiti/dist/babel.js:13:11875)
    at NodePath.buildCodeFrameError (/Users/alec/dev/project/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/babel.js:1946:61785)
    at assertExportSpecifier (/Users/alec/dev/project/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/babel.js:146:10745)
    at /Users/alec/dev/project/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/babel.js:146:6337
    at Array.forEach (<anonymous>)
    at /Users/alec/dev/project/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/babel.js:146:6321
    at Array.forEach (<anonymous>)
    at initializeReexports.initializeReexports (/Users/alec/dev/project/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/babel.js:146:4937)
    at exports.default (/Users/alec/dev/project/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/babel.js:146:7651)
    at exports.rewriteModuleStatementsAndPrepareHeader (/Users/alec/dev/project/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/babel.js:133:1316) {
  code: 'BABEL_TRANSFORM_ERROR'
}

…when doing something like:

export * as foo from './foo'

Activity

  1. BTBMan commented on Sep 19, 2022

    @BTBMan

    The same phenomenon

  2. pi0 commented on Sep 19, 2022

    @pi0
    Member

    Should be supported in latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions