Skip to content

Don't include esprima in the browser bundle #230

@ArtskydJ

Description

@ArtskydJ

In function.js there is a try/catch around a require statement. Browserify will find that require statement and still include esprima in the browser bundle.

Using browserify, you can use the "browser" field like this...

  "browser": {
    "esprima": false
  },

...to make require('esprima') return an empty object in the browser.

Metadata

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