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: change package.json 'module' field to use '.js' extension from '.ts' #65

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

ty-ler
Copy link
Contributor

@ty-ler ty-ler commented Apr 3, 2022

The 'module' field in package.json should probably use a '.js' extension instead of '.ts'. The generated output files located in packages/core/dist/esm don't actually include any .ts files. Changing the extension resolves build issues experienced in Vite when importing the ESM build of @cornerstonejs/core.

Discussion here: #64

@swederik
Copy link
Member

swederik commented Apr 4, 2022

Oh wow I'm a moron yeah that should definitely be pointing to the .js index. Probably a typo from when I was experimenting with it. In our tests and examples we consume the src via aliases, not the actual built version so that's probably why we hadn't noticed yet.

This also needs to be changed for the other two packages in the tools and streaming-image-volume-loader folders.

Thanks!

@swederik swederik merged commit 42f66c2 into cornerstonejs:main Apr 4, 2022
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

Successfully merging this pull request may close these issues.

2 participants