-
-
Notifications
You must be signed in to change notification settings - Fork 600
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
Memory leak when using @rspack/core
API
#3169
Comments
Confirmed. How did you discover this? We don't normally import it as a package 🤔 |
I am currently in the process of migrating a complex build tool that is based on webpack. The tool has the ability to compile multiple projects simultaneously, utilizing webpack's core API. However, when attempting to migrate it to rspack, I encountered a persistent issue of the process being killed due to an OOM error. |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump! |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
@Nikaple I believe this issue has been mitigated: |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
The image says rsbuild, but it seems to be related to rspack itself This happens with the following config import { defineConfig } from "@rsbuild/core";
import { pluginSvgr } from "@rsbuild/plugin-svgr";
import { pluginBabel } from "@rsbuild/plugin-babel";
import { pluginReact } from "@rsbuild/plugin-react";
export default defineConfig({
plugins: [
pluginReact(),
pluginBabel({
include: /\.(?:jsx|tsx)$/,
babelLoaderOptions(opts) {
opts.plugins?.unshift("babel-plugin-react-compiler");
},
}),
pluginSvgr(),
],
html: {
template: "./index.html",
},
source: {
entry: {
index: "./src/index.tsx",
},
alias: {
"@": "./src",
"@lib": "./src/app/resources",
"@/*": "./src/*",
},
},
output: {
distPath: {
root: "build",
},
minify: {
css: true,
js: true,
},
},
dev: {
progressBar: true,
hmr: true,
watchFiles: {
paths: ["./index.html", "./src/**/*"],
},
},
server: {
port: 3000,
strictPort: true,
},
}); |
We are also experiencing rapidly growing memory consumption of rspack dev build in watch mode. |
Exactly |
Would you please file another issue? This issue is basically about creating multiple compilers and memory not getting freed after use. |
System Info
Details
With webpack
Reproduce link
No response
Reproduce Steps
npm create rspack@latest
@rspack/core
Script content:
The text was updated successfully, but these errors were encountered: