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
I'm experiencing and odd behavior where the global object that represents the JavaScript data file is not updating when I make changes to the source javascript file. I'm running eleventy --serve and I have also tried eleventy --watch.
There's no issue if I use .json files, the global object updates as expected. The problem is only happening when using .js files that use module.exports
Here is an example of a .js file that does not update when I add more values to the array.
users.js module.exports = ["user1", "user2"];
Please advise. Thank you.
The text was updated successfully, but these errors were encountered:
@zachleat I used npx eleventy --serve on your example project and it did not update the global object. I'm running Windows 10 and using nodejs v11.4.0.
Maybe one day I can contribute and help fix Windows related bugs. 😢
This is a great open-source project to work on as I find myself using it more and more.
Using Windows 10 with nodejs v11.4.0.
I'm experiencing and odd behavior where the global object that represents the JavaScript data file is not updating when I make changes to the source javascript file. I'm running
eleventy --serve
and I have also triedeleventy --watch
.There's no issue if I use .json files, the global object updates as expected. The problem is only happening when using .js files that use
module.exports
Here is an example of a .js file that does not update when I add more values to the array.
users.js
module.exports = ["user1", "user2"];
Please advise. Thank you.
The text was updated successfully, but these errors were encountered: