From d02b223c6d52d0872cc8750b41260f872894e830 Mon Sep 17 00:00:00 2001 From: ssube Date: Sun, 30 Jun 2019 18:43:52 -0500 Subject: [PATCH] fix(build): move sinon to vendor chunk --- config/rollup.js | 11 +++++++---- test/TestRule.ts | 3 +-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config/rollup.js b/config/rollup.js index 207eea6..3c2f3b6 100644 --- a/config/rollup.js +++ b/config/rollup.js @@ -9,18 +9,21 @@ const metadata = require('../package.json'); const shebang = '#! /usr/bin/env node'; const bundle = { + external: [ + 'dtrace-provider', + ], input: [ 'src/index.ts', 'test/harness.ts', 'test/**/Test*.ts', ], manualChunks(id) { - if (id.includes('/node_modules/')) { - return 'vendor'; + if (id.includes('/test/') /* || id.includes('/chai/') */ || id.includes('/sinon/')) { + return 'test' } - if (id.includes('/test/')) { - return 'test' + if (id.includes('/node_modules/')) { + return 'vendor'; } if (id.includes('/src/index')) { diff --git a/test/TestRule.ts b/test/TestRule.ts index 1a39e18..29d80fd 100644 --- a/test/TestRule.ts +++ b/test/TestRule.ts @@ -159,6 +159,5 @@ describe('rule visitor', () => { mockRule.verify(); expect(ctx.errors.length).to.equal(0); - }) - + }); }); \ No newline at end of file