Strings within filters not updating in .eleventy.js on serve/reload (v1.0.0-beta.8). #2147
Labels
bug: --serve restart
Changes to projects shouldn’t need to restart dev server
bug
feature: 🛠 configuration
Related to Eleventy’s Configuration file
Milestone
Describe the bug
In
0.12.1
editing a string within Filter in.eleventy.js
while usingnpx @11ty/eleventy --serve
triggers a reload and outputs to console and return statement correctly. Inv1.0.0-beta.8
it does not.Initial build (or restart server) corrects the issue.
To Reproduce
Create:
package.json
index.njk
.eleventy.js
yarn
and run withyarn start
console.log('------ Outside filter');
in.eleventy.js
save and output is as expected.console.log('------ Inside Filter');
in.eleventy.js
save and output is as expected.package.json
to "@11ty/eleventy": "v1.0.0-beta.8"yarn
and run withyarn start
console.log('------ Outside filter');
in.eleventy.js
save and output is as expected.console.log('------ Inside Filter');
in.eleventy.js
save and console output DOES NOT UPDATE.This only happens using
--serve
not on initial build. And only happens inv1.0.0-beta.8
not in0.12.1
. Note variables within Filters still seem to update (as with Date function above).Expected behavior
Would expect
v1.0.0-beta.8
behaviour to match0.12.1
Environment:
0.12.1
/v1.0.0-beta.8
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: