Skip to content

Build loop when using amp --minified and Bento npm component #35810

@jridgewell

Description

@jridgewell

Description

I'm seeing a build loop when using the local server and a Bento component, but only if the npm files already exist.

[16:25:07] Minified amp-fit-text → component-react.js (1.912 s)
[16:25:07] Minified amp-fit-text → component-preact.js (1.927 s)
[16:25:07] Wrote CSS amp-fit-text → styles.css (042 ms)
[16:25:10] Minified amp-fit-text → component-preact.js (3.346 s)
[16:25:11] Minified amp-fit-text → component-preact.js (3.564 s)
[16:25:11] Wrote CSS amp-fit-text → styles.css (013 ms)
[16:25:12] Minified amp-fit-text → component-preact.js (1.323 s)
[16:25:12] Minified amp-fit-text → component-preact.js (1.523 s)
[16:25:12] Wrote CSS amp-fit-text → styles.css (004 ms)
[16:25:14] Minified amp-fit-text → component-preact.js (1.510 s)
[16:25:14] Minified amp-fit-text → component-preact.js (1.681 s)
[16:25:14] Wrote CSS amp-fit-text → styles.css (005 ms)
[16:25:14] Minified amp-fit-text → component-preact.js (220 ms)

Reproduction Steps

npx amp clean
npx amp dist --core_runtime_only --extensions amp-fit-text
npx amp --minified

Now, request http://localhost:8000/dist/v0/amp-fit-text-1.0.js. Inspect your bash terminal, and you'll see repeated builds of the amp-fit-text component

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions