Skip to content

Cannot build escodegen.browser.js or the minimized equivalent #397

@ghost

Description

I figured it out and the reasons:

A. escodegen build depend on the 'cjsify' tool which is part of the commonjs-everywhere npm package.

B. The npm installed version of escodegen does not have the tools/ folder, which the build requires.

These details are currently not specified in the README.MD file. I recommend to add the following to the file:

  1. Download or clone the escodegen repository (https://github.com/estools/escodegen/)
  2. Run 'npm install -g commonjs-everywhere'
  3. Run 'npm run-script build' to generate the escodegen.browser.js file.
  4. Run 'npm run-script build-min' to generate the escodegen.browser.min.js file.

This will make it more clear for new users.

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