What is steal and how does it work?
masterSteal is an extensible, universal module loader. Its primary capability is the ability to load JavaScript modules defined in multiple formats simultaneously, including ES6, AMD, and CommonJS. This allows developers to mix and match different module styles within a single project.
Supported module formats include:
- ES6: Using
importstatements. - AMD: Using
definecalls. - CommonJS: Using
requirecalls.
// ES6
import { hello, goodbye } from "greetings";
// AMD
define(["greetings"],function(greetings){ ... });
// CommonJS
var hello = require('greetings').hello;
var goodbye = require('greetings').goodbye;