Modifying files with only types doesn't trigger rebuild. No errors thrown by fork-ts-checker-webpack-plugin.
@LingyuCoder is already working on this.
Since Oct 22, 2024.
Assessment
This issue has not been assessed yet.
Description
I'm using rspack + fork-ts-checker-webpack-plugin with a pretty simple configuration:
const isDev = true;
const isHot = true;
module.exports = {
target: 'browserslist',
mode: isDev ? 'development' : 'production',
entry: path.resolve(__dirname, 'src/main.ts'),
context: path.resolve(__dirname),
devtool: isDev ? 'cheap-module-source-map' : false,
output: {
filename: isHot ? '[name].js' : '[name].[contenthash].js',
assetModuleFilename: '[name][ext]',
clean: true,
scriptType: 'module',
...
},
devServer: {
host: 'localhost',
port: 4200,
headers: { 'Access-Control-Allow-Origin': '*' },
open: false,
compress: false,
client: {
overlay: {
errors: true,
runtimeErrors: false,
warnings: false,
},
},
hot: isHot,
},
plugins: [
isHot && new RefreshPlugin(),
new ForkTsCheckerWebpackPlugin({
typescript: {
configFile: path.resolve(__dirname, './tsconfig.app.json'),
mode: 'write-references',
},
}),
...
};
The problem is, if I make a change to a file that only contains type, like a .d.ts file, no rebuild will be triggered, and I assume therefore, fork-ts-checker-webpack-plugin will not know to run either. Interestingly, the browser DOES refresh when I make a change.
This contrasts with the behavior of webpack-dev-server with fork-ts-checker-webpack-plugin, which responds to all file changes.
- Dominant language
- JavaScript
- Stars
- 42
- Forks
- 9
- Avg merge
- 2h 40m
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rstackjs/rspack-dev-server
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
All issues in rstackjs/rspack-dev-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
[quality] useFocusTrap's Shift+Tab wrap and non-Tab/non-Escape key arms are never driven end to endPossibly taken @hivecommons-hive claimed this today. Openagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/gh-aw-workshop#4220 ·
Maintainers usually reply within 1 day