-
Notifications
You must be signed in to change notification settings - Fork 6
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
WRN-18582: Migrate to webpack5 #90
Conversation
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
plugins/PrerenderPlugin/index.js
Outdated
const templates = require('./templates'); | ||
const vdomServer = require('./vdom-server-render'); | ||
|
||
const preRenderPluginHooksMap = new WeakMap(); |
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.
Should this name be preRender...
? or can be changed to prerender...
?
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.
🆗
@@ -523,6 +539,80 @@ function parsePrerender(html) { | |||
return {head, prerender}; | |||
} | |||
|
|||
// Injects assets into html |
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.
Those 3 functions(injectAssetsIntoHtml, minifyHtml, postProcessHtml) are copies of html-webpack-plugin`s.
Is it impossible that use htmlPluginData.plugin?
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.
They are now moved to private functions. I can't reach the postProcessHtml
function so I had to move these to here.
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
to @MikyungKim ,
|
Yes. It's related to the
🤔 I'm not sure. let's check.
I tested and it's working. Let me check with you.
It'll be handled in the other ticket as I mentioned in the ticket. |
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
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.
LGTM
* WRN-18582: Migrate to webpack5 (#90) * WRN-18582: webpack5 initial commit Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * WRN-18582: Migrated isomorphic and snapshot plugin Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update verbose plugin Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix travis errors Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update dependencies Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix based on review Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update shrinkwrap Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * WRN-12124: Remove deprecated babel-eslint module (#87) * use @babel/eslint-parser * remove babel-preset-react-app * remove @babel/eslint-parser * Revert "remove @babel/eslint-parser" This reverts commit 98ec872. * Revert "remove babel-preset-react-app" This reverts commit 70a93e2. * Revert "use @babel/eslint-parser" This reverts commit 5c15b55. * babel-eslint -> @babel/eslint-parser * add CHANGELOG.md * Update package.json Co-authored-by: Mikyung Kim <[email protected]> * update npm-shrinkwrap.json * removed unused dependency Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update eslint-config-prettier Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) Co-authored-by: Mikyung Kim <[email protected]> * WRN-19252: Fix VerboseLogPlugin is not working (#91) * WRN-19252: Use ProgressPlugin from originated place Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * pinned webpack version Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * WRN-12748: Update eslint 8 related modules (#88) * update eslint 8 * Update package.json * Update package.json Co-authored-by: Mikyung Kim <[email protected]> Co-authored-by: Mikyung Kim <[email protected]> * WRN-19694: Support for React18 (#92) * update react version Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update dependencies Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * WRN-19694: Add react18 support Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * WRN-20218: Fix eanct pack --framework and --externals options (#93) * WRN-20218: Fix enact pack --framework Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix context Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix lint Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix local node_modules files and files ends with .js module id Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * WRN-20481: Fixed miss made module id and miss referenced library (#94) Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * Fix prerendering regex Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update dependencies Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) Co-authored-by: taeyoung.hong <[email protected]>
Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
Checklist
Issue Resolved / Feature Added
Migrated to webpack5
Resolution
Updated APIs of plugins
Added #66
Added
ILIB_ADDITIONAL_RESOURCES_PATH
as defined constants to resolveprocess is undefined
Additional Considerations
Verbose plugin needs to be fixed in WRN-19252
Warning related to Compliation.assets needs to be fixed in WRN-19249
Links
WRN-18582
Comments