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

refactor: code #1807

Merged
merged 11 commits into from Jun 20, 2023
Merged

refactor: code #1807

merged 11 commits into from Jun 20, 2023

Conversation

alexander-akait
Copy link
Collaborator

@alexander-akait alexander-akait commented Jun 19, 2023

Here:

  • simplify logic
  • avoid overhead Promise.resolve() (not eveywhere, we need improve it more)
  • reduce complexy
  • types fixes
  • TODO for the next major release
  • avoid extra clonning and other unnecessary overhead
  • and more

It is the first part of refactor, we need:

  • avoid using Promise.resolve()/etc in favor async/await
  • remove CacheChildCompiler in favor built-in webpack cache (compat with current behaviour, at the end this option will do nothing and just will be removed)
  • autogeneration types from jsdocs
  • readable code and simple code

@alexander-akait alexander-akait merged commit 8dafd5c into main Jun 20, 2023
19 checks passed
@alexander-akait alexander-akait deleted the refactor-code branch June 20, 2023 00:17
chenjiahan added a commit to rspack-contrib/html-rspack-plugin that referenced this pull request Dec 22, 2023
* fix: reemit favicon in serve/watch mode (jantimon#1804)

* refactor: use logger to avoid pulling logs in output (jantimon#1805)

* refactor: avoid extra file (jantimon#1806)

* refactor: code (jantimon#1807)

* docs: improve (jantimon#1808)

* fix: avoid have undefined `type` for script tags (jantimon#1809)

* refactor: fix regression after refactor and testing (jantimon#1810)

* fix: reemit assets from loaders (jantimon#1811)

* test: case for watch/serve and reemitting assets (jantimon#1812)

* docs: add js-entry-webpack-plugin (jantimon#1732)

* chore(release): 5.5.4

* docs: add html-webpack-inject-attributes-plugin to readme (jantimon#1787)

* feat: Added support `type=systemjs-module` via the `scriptLoading` option (jantimon#1822)

* fix: memoy leak (jantimon#1836)

* feat: add `@rspack/core` as an optional peer dependency (jantimon#1829)

* chore(release): 5.6.0

---------

Co-authored-by: Alexander Akait <4567934+alexander-akait@users.noreply.github.com>
Co-authored-by: liam <lawler61@163.com>
Co-authored-by: alexander.akait <sheo13666q@gmail.com>
Co-authored-by: Yuwen Duan <dyw934854565@sina.com>
Co-authored-by: 坏人日记 <badry.lin@gmail.com>
Co-authored-by: Joe Boyle <jboyle617@gmail.com>
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

1 participant