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

production build module without .js from node_modules (symlink) #201

Open
GoodNew5 opened this issue Sep 28, 2023 · 0 comments
Open

production build module without .js from node_modules (symlink) #201

GoodNew5 opened this issue Sep 28, 2023 · 0 comments

Comments

@GoodNew5
Copy link

GoodNew5 commented Sep 28, 2023

Hello guys, i have problem 🙏

I have a local module which is located in node_modules, such ⤵️
cd lib-A
yarn add link:../lib-B

When another project uses it in its code in the final dist, then all files are included with the .js extension, all except those imported from node_modules

here is an example
image

here another one example
image

The only way that I have currently found for myself to fix the problem is to write in the source module with .js
then production build module will be with .js

here is an example
image

Can i fix that most better way?

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