CLI Tool to bundle and transpile modern JS for usage in [js] and [jsui] in Max MSP.
Last updated a year ago by fde31 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install max-js-bundler 
SYNC missed versions from official npm registry.


Build Status Version


CLI Tool to bundle and transpile modern JS for usage in [js] and [jsui] in Max MSP. The idea is basically to support writing modern Ecmascript code alongside the usage of NPM dependencies within your code. Traditional module bundlers get us 95% there but there are some specifics to the js environment in Max that need to be accounted for. This project aims to help with that.

Big shout outs to the following projects that enable this:

  • Babel - for transpiling the JS Code to EcmaScript 5
  • Rollup - Rollup is used for bundling
  • Oclif - for developing the CLI framework


Currently we are using a custom fork of Rollup in order to offer a custom format to avoid any module loader wrapping and leaving the global namespace intact. Apart from that the Treeshaking feature is disabled until I find a way to disable it only for the top level file. None of these issues should affect your code or its functionality. It just means you'll end up with a slightly bigger bundle than needed.


$ npm install -g max-js-bundler

$ max-js-bundler COMMAND
running command...

$ max-js-bundler --version
max-js-bundler/1.0.0-beta.1 darwin-x64 node-v10.13.0

$ max-js-bundler --help [COMMAND]


max-js-bundler build FILE

Build and bundle a Project for usage within the [js] or the [jsui] object

  $ max-js-bundler build FILE

  FILE  InputFile

  -f, --force          Force overwrite the output file
  -h, --help           show CLI help
  -o, --output=output  Output generated file

See code: src/commands/build.ts

max-js-bundler help [COMMAND]

display help for max-js-bundler

  $ max-js-bundler help [COMMAND]

  COMMAND  command to show help for

  --all  see all commands in CLI

See code: @oclif/plugin-help



Current Tags

  • 1.2.0                                ...           latest (a year ago)

7 Versions

  • 1.2.0                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependents (0)

Copyright 2014 - 2016 © |