You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use js config file , i found when dependencies of config file change, dev server cannot restart.But the problem doesn't appear in ts config file.
Reproduction
You can reproduce easily, like this:
// config-dep.js
module.exports = {
a: 1
}
// vite.config.js
const { a } = require('./config-dep');
module.exports = {
define: {
VITE_TEST: a
}
}
Then you change the content of config-dep.js, the dev server cannot get the change.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
When i use js config file , i found when dependencies of config file change, dev server cannot restart.But the problem doesn't appear in ts config file.
Reproduction
You can reproduce easily, like this:
Then you change the content of
config-dep.js
, the dev server cannot get the change.System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: