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

fix: Make sure that global imports/exports do work #1694

Conversation

MichalBryxi
Copy link
Contributor

With this change following import should work:

import { sum } from "ember-math-helpers";

Fixes: #1673

With this change following import should work:

```
import { sum } from "ember-math-helpers";
```

Fixes: RobbieTheWagner#1673
@RobbieTheWagner
Copy link
Owner

@MichalBryxi thanks for the PR! Looks like it might need some additional tweaks to get it to work though.

- Somehow it fixes things like:

```
[!] RollupError: Could not resolve "./helpers/acosh" from "src/index.ts"
```
Needs because of:

```
Module not found: Error: Can't resolve './dist/_app_/index.js' in '/Users/michal/ember/ember-math-helpers/node_modules/.pnpm/ember-math-helpers@file+ember
```
@MichalBryxi
Copy link
Contributor Author

MichalBryxi commented Aug 1, 2024

Now it seems to be working ok on mine:

pnpm test

...

1..66
# tests 66
# pass  66
# skip  0
# todo  0
# fail  0

# ok

@RobbieTheWagner

@RobbieTheWagner RobbieTheWagner merged commit 5ac1d22 into RobbieTheWagner:main Aug 5, 2024
10 checks passed
@MichalBryxi MichalBryxi deleted the mb/fix/1673-add-global-exports branch August 5, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ember-math-helpers + ember-template-imports + glint
2 participants