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(webpack): add cacheProvider for Linaria v3 #889

Merged
merged 1 commit into from Dec 20, 2021
Merged

fix(webpack): add cacheProvider for Linaria v3 #889

merged 1 commit into from Dec 20, 2021

Conversation

malash
Copy link
Contributor

@malash malash commented Dec 18, 2021

Motivation

This PR add the same feature as #884 for Linaria v3.

Summary

See #884

Test plan

I tested this PR in malash/linaria-issue-881@ae8ecca with cacheProvider: undefined and cacheProvider: require.resolve("./linariaFileCache") and they work as expected.

@Anber

.then((cacheInstance) => cacheInstance.set(this.resourcePath, cssText))
.then(() => {
const request = `${outputFileName}!=!${outputCssLoader}?cacheProvider=${encodeURIComponent(
cacheProvider ?? ''
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also fixed this line in #890

.then((cacheInstance) => cacheInstance.set(this.resourcePath, cssText))
.then(() => {
const request = `${outputFileName}!=!${outputCssLoader}?cacheProvider=${encodeURIComponent(
cacheProvider ?? ''
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also fixed this line in #890

@Anber Anber merged commit ee656dd into callstack:master Dec 20, 2021
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.

None yet

2 participants