Skip to content

@garfish/es-module returns "does not provide an export named..." while analyse module with export * from ...  #634

Open
@PIMBA

Description

Describe the bug

moduleA:

export const App = () => null;

moduleB:

export * from 'moduleA';

moduleC:

import { App } from 'moduleB';
// ...other code

remote application:

import Runtime from "@garfish/es-module";

const runtime = new Runtime();
runtime
  .analysisModule(
    `import 'http://localhost:5173/src/moduleC';`
  );

Got Error:
image

Reproduction:
https://github.com/PIMBA/rspack-tests/tree/main/garfish-test

cd vite-test-app
pnpm run dev
cd garfish-test
pnpm run dev

Maybe some

Reproduction

https://github.com/PIMBA/rspack-tests/tree/main/garfish-test

Used Package Manager

pnpm

System Info

System:
    OS: macOS 13.4
    CPU: (8) arm64 Apple M1
    Memory: 86.17 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /usr/local/bin/node
    Yarn: 1.22.11 - ~/.npm-global/bin/yarn
    npm: 9.5.1 - /usr/local/bin/npm
    pnpm: 6.23.6 - ~/Library/pnpm/pnpm
    Watchman: 2023.05.22.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 114.0.5735.133
    Safari: 16.5
  npmPackages:
    @garfish/es-module: ^1.16.2 => 1.16.2

Validations

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