Replies: 3 comments 1 reply
|
Forgot to say that we use the new |
0 replies
|
Curious about the not exiting on build. However, this is encouraging still. I'll add some of what you have written here as issues that you ran into as issues that need to be addressed. |
1 reply
|
I'm going to convert this is to a discussion now that I've listed out the issues in the pinned Known Issues issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey, great work so far! Thanks for taking the path. I was extremely curious how your early work runs in our ionic-angular application and wanted to give it a spin and share it with you.
I just installed your package via pnpm, created a rspack.config.cjs (we have type=module). Copied our Angular.json build config over, commented out properties you are not supporting atm and ran it.
First run failed (ofc) but just with a few errors because of missing features. Changes I had to make to our copied config:
./node_modules/since some do not have "exports" set correctly in package.json@import@usein SCSS files that are cross-linked withstylePreprocessorOptions.includePathsassetswith globs (you support only string, atm)rspack build, so need to CTRL-CBuild runs great, code-splitting works flawlessly (love that part of rsbuild), even for CSS.
time pnpm rspack build: 11 directories, 237 files – 5.43s (little delay since I need to CTRL-C)time pnpm ng build: 14 directories, 381 files – 7.89s (cold)time pnpm ng build: 14 directories, 381 files – 7.89s (warm)Our configs:
tsconfig.json
{ "compileOnSave": false, "compilerOptions": { "rootDir": ".", "baseUrl": ".", "outDir": "./www/out-tsc", "strict": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noImplicitOverride": true, "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, "forceConsistentCasingInFileNames": true, "strictPropertyInitialization": true, "strictNullChecks": true, "isolatedModules": true, "sourceMap": false, "inlineSourceMap": false, "declaration": false, "experimentalDecorators": true, "verbatimModuleSyntax": true, "resolveJsonModule": true, "skipLibCheck": true, "moduleDetection": "force", "importHelpers": true, "target": "ES2022", "module": "Preserve", "lib": ["ES2022", "DOM"], "paths": { // ~20 } }, "angularCompilerOptions": { "disableTypeScriptVersionCheck": true, "enableResourceInlining": false, "enableI18nLegacyMessageIdFormat": false, "fullTemplateTypeCheck": true, "strictInjectionParameters": true, "strictInputAccessModifiers": true, "strictTemplates": true, "extendedDiagnostics": { "defaultCategory": "error" } }, "include": ["src"], "exclude": ["**/node_modules", "**/.*/", "www/", "ios/", "android/", "scripts/"] }rspack.config.cjs
Things we are missing are just env/dotenv support or extensibility to enable Define-plugin and an index transformer (which you already put on the roadmap I saw).
I hope this helps :)
All reactions