From 48d25282407d2b1d3cdfac51f311d018a6a16d25 Mon Sep 17 00:00:00 2001 From: Justin Hall Date: Wed, 12 Dec 2018 14:24:42 -0700 Subject: [PATCH] Fix rollup external test on Windows --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 0522d8d2..79a7e70f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -8,7 +8,7 @@ import { sizeSnapshot } from 'rollup-plugin-size-snapshot'; import { terser } from 'rollup-plugin-terser'; const umdName = 'hibp'; -const external = id => !id.startsWith('.') && !id.startsWith('/'); +const external = id => !/^(\.|\/|[a-z]:\\)/i.test(id); const babelOpts = { exclude: 'node_modules/**' }; const nodeResolveOpts = { browser: true, jsnext: true }; const sizeSnapshotOpts = { printInfo: false };