Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

require is not defined in v3.3.0 #83

Closed
@martinhecher

Description

We are running into a regression with v3.3.0 when creating an UMD bundle that includes the NPM module oauthio-web.

Including the UMD bundle in a web page results in this error:

Uncaught ReferenceError: require is not defined

I created a repository to demonstrate the error:

https://github.com/Redsift/rollup-common-js-regression

Running

npm install
npm start

opens a browser window. Opening the index.html there shows the error in the developer console.

The code works fine with v3.0.2.

It seems that this regression could be related to the following code change:

if ( name === 'require' && !scope.contains( name ) ) {

Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions