egoist / egoist/tsup

Watch doesn't work anymore since upgrade to 8.3.5 / 8.3.6 (working in 8.3.0)

Open
#1,293 6 comments 20 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

Hi there,

Since I upgraded to 8.3.5 or 8.3.6 the `--watch` doesn't detect changes anymore. I didn't change any configuration.
Rolling back to 8.3.0 solves the issue.

My config is Windows 11 using npm
My tsup.config

```import { defineConfig, Options } from 'tsup'
import { sassPlugin } from 'esbuild-sass-plugin'

export default defineConfig(
({ watch }): Options => ({
// Files-relared options
entry: [
'scripts/index.jsx',
'style/colors.scss',
'style/all.scss',
'style/export.scss',
'style/style.scss',
],
outDir: '../public/dist',
clean: true,
// Build options
splitting: false,
sourcemap: true,
platform: 'browser',

// This is required to avoid really weird errors (but I don't know why)
format: ['esm'],

// Mark all NPM dependencies as internal
noExternal: [/.*/],

// Reduce bundle size when building for production (as too slow for dev mode)
minify: !watch,
treeshake: !watch,
target: 'es2019',

// Additional language support
esbuildPlugins: [
sassPlugin(),
],
}),
)
```

Contributor guide

Open the contributing guide

Research direction

Start with the provided tsup.config and reproduce the --watch behavior on Windows 11 using versions 8.3.6 and 8.3.0, including the sassPlugin configuration and listed entry files. Compare whether changes are detected after the upgrade; the issue is done when watch reliably detects changes on the affected versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.