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

Get Multiple files are emitting to the same path warning when watch: true #135

Closed
AngusFu opened this issue Jul 25, 2018 · 1 comment · Fixed by #136
Closed

Get Multiple files are emitting to the same path warning when watch: true #135

AngusFu opened this issue Jul 25, 2018 · 1 comment · Fixed by #136
Labels

Comments

@AngusFu
Copy link
Contributor

AngusFu commented Jul 25, 2018

I got the warning message "Multiple files are emitting to the same path", though await nextTick() used: src/index.js#L566.

image

If I overwrite the nextTick() method with setTimeout(resolve, may_be_600ms), everything turns normal.

Example:

const Bili = require('bili')
const option = {
  input: './src/util/pascal-case.js',
  moduleName: 'MyTest',
  js: 'babel',
  babel: {
    babelrc: false
  },
  format: ['iife'],
  filename: '[name][suffix].js',
  target: 'browser',
  watch: true
}

Bili.write(option).catch(console.error)
egoist pushed a commit that referenced this issue Nov 16, 2018
* fix: issue #135 relating watch mode

* fix: use removeListener instead of off
@egoist
Copy link
Owner

egoist commented Nov 16, 2018

🎉 This issue has been resolved in version 3.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants