From ca93acb6ae268b5072b644509539bd31ef770786 Mon Sep 17 00:00:00 2001 From: Nicolas DUBIEN Date: Thu, 23 Aug 2018 20:56:07 +0200 Subject: [PATCH 1/2] Remove warning suppression from rollup build --- test/rollup/rollup.config.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/rollup/rollup.config.js b/test/rollup/rollup.config.js index 1b7234d2a6e..7cf926e22d1 100644 --- a/test/rollup/rollup.config.js +++ b/test/rollup/rollup.config.js @@ -8,12 +8,4 @@ export default { format: 'cjs' }, plugins: [ resolve(), cjs() ], - - // (!) Unresolved dependencies -- os (imported by node_modules\lorem-ipsum\lib\generator.js, commonjs-external:os) - external: [ 'os' ], - // (!) `this` has been rewritten to `undefined` - onwarn: function ({code, message}) { - if (code === 'THIS_IS_UNDEFINED') return; - console.error(message); - } }; From 3195b15d7682ef9cd1b42b18ab73b8a10e4a8515 Mon Sep 17 00:00:00 2001 From: Nicolas DUBIEN Date: Thu, 23 Aug 2018 20:56:36 +0200 Subject: [PATCH 2/2] Run rollup test against the esm build of fast-check --- .travis.yml | 2 +- test/rollup/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a94bfe98619..e1e503bf537 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ jobs: - stage: test env: STEP=ROLLUP script: - - npm run build + - npm run build:publish-esm - npm run test:rollup - stage: publish documentation if: branch = master AND type = push diff --git a/test/rollup/main.js b/test/rollup/main.js index c5ddef0013f..23cc7e50572 100644 --- a/test/rollup/main.js +++ b/test/rollup/main.js @@ -1,2 +1,2 @@ -const fc = require('../../lib/fast-check'); +import * as fc from '../../lib/esm/fast-check'; console.log(fc.sample(fc.lorem(), {seed: 42, numRuns: 5}));