Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karel-maieuticapp opened this issue Feb 11, 2025 · 0 comments

Comments

@karel-maieuticapp
Copy link

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 { 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(),
    ],
  }),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant