这是indexloc提供的服务,不要输入任何密码
Skip to content

Bento: Errant bent statement breaks component #35741

@swissspidy

Description

@swissspidy

Description

Eager to test the new enhancement in #35446, I updated the @ampproject/amp-base-carousel npm package to the latest version (1.2108190446.0) only to find out that it's now totally broken.

Both the Preact and the React components have bent on their first line, causing ReferenceError: bent is not defined errors when trying to use them.

For reference, here are the first 7 lines of component-react.max.js:

bent
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

And some screenshots:

Screenshot 2021-08-19 at 18 36 37
Screenshot 2021-08-19 at 18 36 54

Reproduction Steps

Install @ampproject/amp-base-carousel and try to use the React or Preact component in an application.

Relevant Logs

ReferenceError: bent is not defined

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

2108190446000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions