I want to refactor the standard library for miniSphere 5.0. The code is all over the place currently and different modules use different styles; they sometimes don't even use module.exports consistently. What I think I'd like to do is reorganize it so that the CommonJS view is split at the object level--each require() module would correspond to a single namespace, function, or class--while the ES6 view would have it all merged into a single composite module, making everything more intuitive for both environments.
Node style (CommonJS):
const from = require('from'),
Delegate = require('delegate'),
Music = require('music'),
Scene = require('scene');
ES6 style:
import { from, Delegate, Music, Scene } from 'miniRT';
Which really shows the strength of the ES6 module syntax compared to old-style require()