mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
When used, the 'modules' package provides a CommonJS require/exports module system via the exported meteorInstall function. Once that underlying system is available, ECMAScript 2015 import/export syntax can be easily compiled into require/exports.
7 lines
218 B
JavaScript
7 lines
218 B
JavaScript
Tinytest.add('modules', function (test) {
|
|
test.equal(typeof meteorInstall, "function");
|
|
var require = meteorInstall();
|
|
test.equal(typeof require, "function");
|
|
test.equal(typeof require.ensure, "function");
|
|
});
|