Welcome to the
We are currently in ‘preview’ whilst we flesh out our docs and finish off some features (and find out if someone thinks this is just wrong :) ). We are looking for opinion and developer experience feedback.
So yes, a beta :)
Version 7 is the current major release, the next major release ‘should’ be our first ‘public’, ‘non-preview’ release.
- This documentation ;)
- Support for node-like synchronous
requiresdoesn’t yet support cyclic dependencies (we aren’t sure if we want to yet). We are also hoping for further issues to arise around
requirethat we can fix. Requiring things like
require("babel-core")chokes on the circular dependencies. Of course we don’t really want people to use
requirehere, it’s mainly for supporting 3rd party modules for the moment.
- Keep improving developer usability.
- Optimization (bundle filesizes). Reworking of ‘minification’ into ‘post-bundling’ services.
- Comparisons to other bundlers
- All file paths are relative to your call to
o. I’ll say that again, all file paths are relative to your call to
o. We keep reconsidering this, but our current choice keeps winning, it may lose before the next version is out. We currently make
__filenameavailable in all CommonJS modules.
- Only executed
requires/importsetc will be included in your bundle (unless you declare
bundle: false). Generally this isn’t an issue, but we have plans to address this by bundling up non-executed code also.
Any major/api changes will of course bump a major version.
We are going to try to have really detailed docs. So if you just want to get going simply and quickly, see ‘Quickstarts‘.
Ideally we’d like people to follow using
o as a dependency injection container/builder using…
We’ve added more for reference:
All Quickstarts use
o via a CDN and therefore don’t require node/npm. If you wish to use npm, you can use it like you would any other npm module.
o/b.js) for browsers and Node.js
- An in-browser loader, transpiler, live-reloader and bundler (using
Whilst it can be used as a simple
System.import like module loader, it becomes much more useful along with
o/b, as a highly configurable, flexible, dependency injection builder/container. We’d recommend you use it as such.
No Node required
We like to write pure functions, plumbed together using dependency injection configuration/builder, so we use
Use the development build of o
o.dev.js, which adds a dev toolbar for easy bundling and cache clearing.
Click bundle to download your minified/transpiled bundle.
Once bundled you can just include your bundle as you normally would.