René's URL Explorer Experiment


Title: nestjs使用rspack编译无法热更新 · Issue #291 · rstackjs/rstack-examples · GitHub

Open Graph Title: nestjs使用rspack编译无法热更新 · Issue #291 · rstackjs/rstack-examples

X Title: nestjs使用rspack编译无法热更新 · Issue #291 · rstackjs/rstack-examples

Description: 按照nestjs项目示例配置热更新,无法生效 使用的是@nestjs/platform-fastify框架 rspack配置如下: const { join, resolve } = require('path'); const { rspack } = require('@rspack/core'); const nodeExternals = require('webpack-node-externals'); const { RunScriptWebpackPlu...

Open Graph Description: 按照nestjs项目示例配置热更新,无法生效 使用的是@nestjs/platform-fastify框架 rspack配置如下: const { join, resolve } = require('path'); const { rspack } = require('@rspack/core'); const nodeExternals = require('webpack-node-...

X Description: 按照nestjs项目示例配置热更新,无法生效 使用的是@nestjs/platform-fastify框架 rspack配置如下: const { join, resolve } = require('path'); const { rspack } = require('@rspack/core'); const nodeExternals = requir...

Opengraph URL: https://github.com/rstackjs/rstack-examples/issues/291

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"nestjs使用rspack编译无法热更新","articleBody":"按照nestjs项目示例配置热更新,无法生效\n\n使用的是@nestjs/platform-fastify框架\nrspack配置如下:\n```\nconst { join, resolve } = require('path');\nconst { rspack } = require('@rspack/core');\nconst nodeExternals = require('webpack-node-externals');\nconst { RunScriptWebpackPlugin } = require('run-script-webpack-plugin');\nconst { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');\n\nconst config = {\n  context: __dirname,\n  mode: 'development',\n  target: 'node',\n  devtool: 'inline-source-map',\n  entry: {\n    main: ['@rspack/core/hot/poll?100', './src/main.ts'],\n  },\n  output: {\n    devtoolModuleFilenameTemplate: (info) =\u003e {\n      return resolve(info.absoluteResourcePath);\n    },\n    path: join(__dirname, 'dist'),\n    filename: 'main.js',\n    library: {\n      type: 'commonjs2',\n    },\n    clean: true,\n  },\n  externals: [\n    nodeExternals({\n      allowlist: ['@rspack/core/hot/poll?100'],\n    }),\n  ],\n  resolve: {\n    extensions: ['.tsx', '.ts', '.js', '.json', '.node'],\n    tsConfig: {\n      configFile: resolve('tsconfig.json'),\n    },\n  },\n  module: {\n    rules: [\n      {\n        test: /\\.node$/,\n        loader: 'node-loader',\n        options: {\n          name: '[path][name].[ext]',\n        },\n      },\n      {\n        test: /\\.tsx?$/,\n        exclude: /node_modules/,\n        loader: 'builtin:swc-loader',\n        options: {\n          sourceMaps: true,\n          jsc: {\n            parser: {\n              syntax: 'typescript',\n              tsx: true,\n              decorators: true,\n              dynamicImport: true,\n            },\n            transform: {\n              legacyDecorator: true,\n              decoratorMetadata: true,\n            },\n            target: 'es2017',\n            loose: true,\n            externalHelpers: false,\n            keepClassNames: true,\n          },\n          module: {\n            type: 'commonjs',\n            strict: false,\n            strictMode: true,\n            lazy: false,\n            noInterop: false,\n          },\n        },\n      },\n    ],\n  },\n  optimization: {\n    minimize: false,\n    nodeEnv: false,\n  },\n  plugins: [\n    new rspack.EnvironmentPlugin({\n      NODE_ENV: 'development',\n    }),\n    new RunScriptWebpackPlugin({\n      name: 'main.js',\n      autoRestart: false,\n    }),\n    new rspack.HotModuleReplacementPlugin(),\n    new rspack.CopyRspackPlugin({\n      patterns: [{ from: 'public', to: 'public' }, { from: 'templates', to: 'templates' }, { from: 'i18n', to: 'i18n' }, { from: 'config', to: 'config' }],\n    }),\n    new TsCheckerRspackPlugin({\n      typescript: {\n        configFile: resolve('tsconfig.json'),\n      },\n    }),\n  ],\n  devServer: {\n    hot: true,\n    devMiddleware: {\n      writeToDisk: true,\n    },\n  },\n  cache: true,\n  experiments: {\n    cache: {\n      type: 'persistent',\n    },\n  },\n  watch: true,\n  watchOptions: {\n    ignored: /node_modules/,\n    poll: 100,\n  },\n};\n\nmodule.exports = config;\n\n```","author":{"url":"https://github.com/ying-bin","@type":"Person","name":"ying-bin"},"datePublished":"2025-05-21T07:31:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/291/rstack-examples/issues/291"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:62ee5da9-e30e-3d2b-7685-1a67afafe671
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA16:9E1F1:2B5D158:3CF4C9A:697106F0
html-safe-nonce504f96c811c1567edd5754ae39fe4b08c9e90f3d079ffc152c44cd714d387bc6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTE2OjlFMUYxOjJCNUQxNTg6M0NGNEM5QTo2OTcxMDZGMCIsInZpc2l0b3JfaWQiOiIyODM3NDIyMTA2NjYyMjA5MjY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0e93e87e69b5b0f672a1c9542fcf0a4316e1df10bbd8a26880abbf7097a4f24b
hovercard-subject-tagissue:3079234761
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rstackjs/rstack-examples/291/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b099dfc2b76d7ef6b6f8258f1fc7c8c011687742fd2c42bb869cff48ea7ded94/rstackjs/rstack-examples/issues/291
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b099dfc2b76d7ef6b6f8258f1fc7c8c011687742fd2c42bb869cff48ea7ded94/rstackjs/rstack-examples/issues/291
og:image:alt按照nestjs项目示例配置热更新,无法生效 使用的是@nestjs/platform-fastify框架 rspack配置如下: const { join, resolve } = require('path'); const { rspack } = require('@rspack/core'); const nodeExternals = require('webpack-node-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameying-bin
hostnamegithub.com
expected-hostnamegithub.com
None6d0e7b0d5e294a53c55f49e80755e785182080c6e6a48c9ed353bedddaee69f4
turbo-cache-controlno-preview
go-importgithub.com/rstackjs/rstack-examples git https://github.com/rstackjs/rstack-examples.git
octolytics-dimension-user_id129049372
octolytics-dimension-user_loginrstackjs
octolytics-dimension-repository_id721103420
octolytics-dimension-repository_nworstackjs/rstack-examples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id721103420
octolytics-dimension-repository_network_root_nworstackjs/rstack-examples
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d5a3a396bc74e65fd3ef897b0a99a6e489debaa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues/291#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Frstackjs%2Frstack-examples%2Fissues%2F291
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Frstackjs%2Frstack-examples%2Fissues%2F291
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=rstackjs%2Frstack-examples
Reloadhttps://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues/291
Reloadhttps://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues/291
Reloadhttps://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues/291
rstackjs https://patch-diff.githubusercontent.com/rstackjs
rstack-exampleshttps://patch-diff.githubusercontent.com/rstackjs/rstack-examples
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Frstackjs%2Frstack-examples
Fork 42 https://patch-diff.githubusercontent.com/login?return_to=%2Frstackjs%2Frstack-examples
Star 152 https://patch-diff.githubusercontent.com/login?return_to=%2Frstackjs%2Frstack-examples
Code https://patch-diff.githubusercontent.com/rstackjs/rstack-examples
Issues 11 https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues
Pull requests 5 https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/pulls
Actions https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/actions
Projects 0 https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/security
Please reload this pagehttps://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues/291
Insights https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/pulse
Code https://patch-diff.githubusercontent.com/rstackjs/rstack-examples
Issues https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues
Pull requests https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/pulls
Actions https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/actions
Projects https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/projects
Security https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/security
Insights https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/rstackjs/rstack-examples/issues/291
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/rstackjs/rstack-examples/issues/291
nestjs使用rspack编译无法热更新https://patch-diff.githubusercontent.com/rstackjs/rstack-examples/issues/291#top
https://github.com/ying-bin
https://github.com/ying-bin
ying-binhttps://github.com/ying-bin
on May 21, 2025https://github.com/rstackjs/rstack-examples/issues/291#issue-3079234761
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.