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

[2.7.3] Different export used for Sinon dependency #632

Open
SanderKnauff opened this issue Aug 3, 2024 · 0 comments
Open

[2.7.3] Different export used for Sinon dependency #632

SanderKnauff opened this issue Aug 3, 2024 · 0 comments

Comments

@SanderKnauff
Copy link

Summary from the discussion in #628:

A change in ember-auto-import 2.7.3 caused the export of a package to be different from the one that ember-auto-import 2.7.2.

In the observed case, using a named import import { stub } from 'sinon'; seems to be resulting in different behavior than import sinon from 'sinon'; sinon.stub();

Sinon defines its exports as follows:

  "exports": {
    ".": {
      "browser": "./pkg/sinon-esm.js",
      "require": "./lib/sinon.js",
      "import": "./pkg/sinon-esm.js"
    },
    "./*": "./*"
  },

The ESM module does have the export defined on line 20295.

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

No branches or pull requests

1 participant