这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@karel-maieuticapp

Description

@karel-maieuticapp

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(),
    ],
  }),
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions