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

Support exports entry in package.json #177

Closed
aminya opened this issue Mar 30, 2021 · 1 comment
Closed

Support exports entry in package.json #177

aminya opened this issue Mar 30, 2021 · 1 comment
Labels

Comments

@aminya
Copy link

aminya commented Mar 30, 2021

Some of the modern libraries like solid-js now rely on the exports entry in package.json to import the correct code for different environments (node, browser, etc).

Most of the tools such as Parcel, Rollup, Vite, etc support these entries, but Jasmine doesn't. Could you the support for that?

Here is more information about exports:
https://nodejs.org/api/packages.html#packages_subpath_exports
https://medium.com/swlh/npm-new-package-json-exports-field-1a7d1f489ccf

@sgravrock
Copy link
Member

That sounds like it could be useful. The catch is that the jasmine node module doesn't have a particularly well-documented public API at this point, so adding exports would likely be a breaking change. (Contrast jasmine-core, which does have a documented public API but isn't packaged in a way that makes exports useful.) We'll take another look at this when we get close to the next major release.

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

No branches or pull requests

2 participants