stitch icon indicating copy to clipboard operation
stitch copied to clipboard

undefined in result

Open dy opened this issue 10 years ago • 0 comments

I invoke node build.js, where I have:

var stitch  = require('stitch');
var fs      = require('fs');

var package = stitch.createPackage({
    paths: [__dirname + '/src']
});

package.compile(function (err, source){
    fs.writeFile('dist/result.js', source, function (err) {
        if (err) throw err;
        console.log('Compiled result.js');
    })
})

But in result.js I see only undefined.

dy avatar Aug 15 '14 20:08 dy