question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`bento-*.js` files are not built on server request

See original GitHub issue

When I load a local document with the following, the local server builds dist/v0/amp-timeago-1.0.max.js:

<script
  async
  src="https://cdn.ampproject.org/v0/amp-timeago-1.0.js"
></script>

When I load a local document with the following, the local server does not build dist/v0/bento-timeago-1.0.max.js:

<script
  async
  src="https://cdn.ampproject.org/v0/bento-timeago-1.0.js"
></script>

Make it so that the dev server triggers a re-build on bento-*.js files.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samouricommented, Oct 25, 2021

@rsimha: indeed it now looks mostly correct! Found one small bug, but once that is resolved it is WAI: https://github.com/ampproject/amphtml/pull/36480

0reactions
powerivqcommented, Oct 25, 2021

@samouri Yeah, for vendor nonmodule it should be working. Is it for vendor.mjs (ESM)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Self-hosting · Discussion #3 · ampproject/bento - GitHub
One correction, if you are trying to get bento components you should not retrieve them from cdn.ampproject.org . The AMP Cache is for...
Read more >
Introducing the Bento component library | bentojs.dev
Another benefit of Bento components is that resources are loaded lazily by default. Requests to external URLs occur only as the embed approaches ......
Read more >
Overview — Bento release-3.8.0 documentation - GitHub Pages
Bento is a software framework being built to support NCI's Cancer Research Data Commons projects, including Integrated Canine Data Commons (ICDC) ...
Read more >
Introducing bento, a NixOS deployment framework
Bento aims at managing a huge amount of NixOS in the wild, so it has been made with robustness in mind to bypass...
Read more >
Unexpected token m in JSON at position 0 error - Stack Overflow
The reason it says unexpected token m is because the json-loader transforms your json into a javascript file which starts with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found