Sha256: 047e50851c6482a4efc5fb516f82a7d9a141e82a6fa96ad0492be5b1bad03f79

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 Bytes

Contents

var test = require('tape');
var pack = require('../');

test('raw', function (t) {
    t.plan(1);
    
    var p = pack({ raw: true });
    var src = '';
    p.on('data', function (buf) { src += buf });
    p.on('end', function () {
        var r = Function(['T'], 'return ' + src)(t);
    });
    
    p.write({
        id: 'abc',
        source: 'T.ok(true)',
        entry: true,
    });
    
    p.write({
        id: 'xyz',
        source: 'T.fail("non-entry files should not execute")'
    });
    
    p.end();
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/browser-pack/test/only_execute_entries.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/browser-pack/test/only_execute_entries.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/browser-pack/test/only_execute_entries.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/browser-pack/test/only_execute_entries.js