Sha256: 4bcf138051e210f00bb466df87355adb6a20ca465a5765c45d1f4e48fc24f940

Contents?: true

Size: 526 Bytes

Versions: 7

Compression:

Stored size: 526 Bytes

Contents

var test = require('tap').test;
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

7 entries across 7 versions & 2 rubygems

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/browser-pack/test/only_execute_entries.js
brwy_rails-0.0.6 test/dummy/node_modules/browser-pack/test/only_execute_entries.js
brwy_rails-0.0.5 test/dummy/node_modules/browser-pack/test/only_execute_entries.js
brwy_rails-0.0.4 test/dummy/node_modules/browser-pack/test/only_execute_entries.js
brwy_rails-0.0.3 test/dummy/node_modules/browser-pack/test/only_execute_entries.js
brwy_rails-0.0.2 test/dummy/node_modules/browser-pack/test/only_execute_entries.js
brwy_rails-0.0.1 test/dummy/node_modules/browser-pack/test/only_execute_entries.js