Gruntjs 超出Grunt Browserify最大调用堆栈大小

Gruntjs 超出Grunt Browserify最大调用堆栈大小,gruntjs,reactjs,browserify,Gruntjs,Reactjs,Browserify,我正在使用grunt browserify编译我的react/flux应用程序。我还启用了browserify选项下的Watchify,以加快编译过程。第一次运行时,它可以正常编译,但一旦我更改了文件并再次编译,浏览器控制台中会出现超过最大调用堆栈大小的错误并中断应用程序 Watchify似乎再次在导致错误的重新编译上添加了react/flux/other依赖项。只是一个理论 有什么想法吗 咕哝任务 登记册 您是否尝试忽略“public/dist/bundle.js”进行观看 browserif

我正在使用grunt browserify编译我的react/flux应用程序。我还启用了browserify选项下的Watchify,以加快编译过程。第一次运行时,它可以正常编译,但一旦我更改了文件并再次编译,浏览器控制台中会出现
超过最大调用堆栈大小的
错误并中断应用程序

Watchify似乎再次在导致错误的重新编译上添加了react/flux/other依赖项。只是一个理论

有什么想法吗

咕哝任务 登记册
您是否尝试忽略“public/dist/bundle.js”进行观看

browserify: {
  dist: {
    files: {
      'public/dist/bundle.js': ['public/js/**/*.jsx', 'public/js/**/*.js']
    },
    options: {
      debug: true,
      bare: true,
      alias: [
        './node_modules/react/dist/react-with-addons.js:react',
        './node_modules/flux/index.js:flux',
        './public/lib/react-router/react-router.js:react-router',
        './node_modules/lodash/index.js:lodash'
      ],
      transform: [react.browserify],
      watch: true,
      keepAlive: true
    }
  }
}
grunt.registerTask('compile', ['browserify']);