Skip to content

Library build and dependencies refactoring #5791

@limzykenneth

Description

@limzykenneth

Topic

As part of a refactoring of the build and release process, there are some options that may need some discussions on related to some discussions around the implementation of saveGif() @jesi-rgb has been working on.

  1. UglifyJS that we are using now is UglifyJS2 which does not support ES6 and later syntax. We'll need to replace it with either UglifyJS3 or terser. I'd personally prefer terser but would like to know if there's any other opinion about considering UglifyJS3 instead.
  2. Currently we are using babelify as a browserify transform for code transpilation while recently @jesi-rgb has added grunt-babel to do the same. The main question here is, ideally we will only do one transpilation, so should it be done before bundling everything (so only transpiling p5.js source code, ie babelify) or after (including node_modules dependencies, ie. grunt-babel)?

Just tagging a few people I can think of off the top of my head but if you have some thoughts please share.
@Qianqianye @stalgiag @davepagurek @endurance21

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