JavaScript
Need help with smash?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
mbostock

Description

SMASH TOGETHER MULTIPLE FILES [deprecated; try rollup/rollup]

204 Stars 20 Forks Other 52 Commits 6 Opened issues

Services available

Need anything else?

SMASH

SMASH DEPRECATED. DO ROLLUP INSTEAD.

SMASH TOGETHER FILES! PROBABLY JAVASCRIPT.

SAY THIS foo.js:

import "bar";

function foo() { return "foo" + bar(); }

AND THIS bar.js:

function bar() {
  return "bar";
}

WHEN SMASH TOGETHER foo.js AND bar.js:

function bar() {
  return "bar";
}

function foo() { return "foo" + bar(); }

SMASH HANDLE CIRCULAR AND REDUNDANT IMPORTS GOOD. SMASH GOOD. SMASH.

SMASH LIKE MAKE, TOO.

bundle.js: $(shell smash --list src/bundle.js)
  smash src/bundle.js > bundle.js

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.