Open Nikaple opened 1 year ago
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:
But there's still some leaking problem with the Compiler
and Compilation
. It's under our investigation.
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,
},
});
System Info
Details
With webpack
Reproduce link
No response
Reproduce Steps
npm create rspack@latest
@rspack/core
Script content: