require()
, though, since we need: - exports.instantiate = require("$less").instantiate;
A I tried returning a promise, but it errors.
System.import("$less").then()
wouldn't get
the value to
exports
in time. Edit: This works in dev:
- exports.instantiate = function(load) {
- return new Promise( function(resolve, reject) {
- System.import("$css").then( function(css) {
- resolve( css.instantiate(load) );
- });
- });
- };
When building, however, it just shows:
OPENING: main
then
exits.