-
Notifications
You must be signed in to change notification settings - Fork 61
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
make webpack-extraction-plugin and webpack-loader support webpack v4 #274
make webpack-extraction-plugin and webpack-loader support webpack v4 #274
Conversation
609c8ca
to
59a06af
Compare
@@ -1,6 +1,7 @@ | |||
import { defaultCompareMediaQueries, GriffelRenderer } from '@griffel/core'; | |||
import { Compilation } from 'webpack'; | |||
import type { Compiler, sources } from 'webpack'; | |||
import { RawSource } from 'webpack-sources'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useless, will remove in next commit
@Leolewin to be clear: supporting Webpack 4 is not our requirement that's why it's not there. Thanks for contributing 👍 Let's split this PR to have it separately for the loader and the plugin:
|
Hi @layershifter , really thanks for your great help and suggestions.
We fully understand why Griffel didn't take webpack v4 into consideration since it has been 2 years after v5 been released and widely used by community 😀. We also want to leverage the advantages in v5, but it's not a easy task since our repo are huge and unreasonable for just using a plugin. That's why I made these rash changes 🙈. Appreciated for you taking time to review and give the valuable feedback. |
@Leolewin looking forward to see the changed 👍 Another option is to have some utils like CompiledCSS does: https://github.com/atlassian-labs/compiled/blob/40211567504538272f726085e7b5f8c7c4eb2255/packages/webpack-loader/src/utils.ts#L70-L99 |
@Leolewin all changes have been merged 😉 |
@layershifter So sorry for the late reply. Apologized for been trapped in internal V9 upgrading investigation and POC tasks. I will see the changes in your new PR. |
Closing this for housekeeping 🏡 We can return to this later if needed. |
Hi experts, I'm an engineer from Microsoft SharePoint_STCA SZ. Currently our team are doing some fluent v9 upgrade tasks. We find that fluent v9 uses griffel to support CSS-in-JS and provide some useful webpack loader or plugins to improve the performance. Unfortunately, these tools are designed for webpack 5, but our project uses webpack 4 and need large efforts to upgrade it to v5. So I tried to make it work on wbepack 4. This is a draft PR. Would you like to review and give us some comments?
@layershifter @ling1726