Observable Framework proxies all src/*.js files through its own bundler — <script type="module"> imports from <head> resolve to circular re-export shims and never execute. The fix: read improvement-modal.js at config load time in Node.js, strip the ES module export keyword, and interpolate the content as a plain <script> block in the head config. It runs on every page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| observablehq.config.js | ||
| package-lock.json | ||
| package.json | ||