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: use memfs for ts artifacts to prevent mtime conflict #617

Merged
merged 1 commit into from May 18, 2021

Conversation

piotr-oles
Copy link
Collaborator

When ts-loader uses project references mode, it writes down .js and .d.ts files. If it does it faster than the plugin, the typescript instance in the plugin is confused and doesn't work properly. To fix that, let's use memfs for dirs and files that are detected as project artifacts.

Related: #611

@piotr-oles piotr-oles self-assigned this May 17, 2021
@piotr-oles piotr-oles force-pushed the fix/use-memfs-for-artifacts branch from 02426ec to 5c75f44 Compare May 18, 2021 19:46
When ts-loader uses projectReferences mode, it writes down .js and .d.ts
files. If it does it faster than the plugin, the typescript instance in
the plugin is confused and doesn't work properly. To fix that, let's use
memfs for dirs and files that are detected as a project artifacts.
@piotr-oles piotr-oles force-pushed the fix/use-memfs-for-artifacts branch from 5c75f44 to a24fe1c Compare May 18, 2021 19:49
@piotr-oles piotr-oles enabled auto-merge (squash) May 18, 2021 19:50
@piotr-oles piotr-oles merged commit 05cf957 into main May 18, 2021
@piotr-oles piotr-oles deleted the fix/use-memfs-for-artifacts branch May 18, 2021 20:28
@piotr-oles
Copy link
Collaborator Author

🎉 This PR is included in version 6.2.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@piotr-oles
Copy link
Collaborator Author

🎉 This PR is included in version 7.0.0-alpha.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants