From 1a85bf1a1029025bf6d56d6e9af4f94abc9b2f8e Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Thu, 14 Dec 2017 11:27:22 -0500 Subject: [PATCH] change node resolve param to allow cjs modules, prefer mjs by changing "modulesOnly" to just "modules", rollup will look for an mjs module by default, but accept and bundle cjs if not --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index bbf0b03..df7d2af 100644 --- a/src/index.js +++ b/src/index.js @@ -195,7 +195,7 @@ function createConfig(options, entry, format) { include: 'node_modules/**' }), useNodeResolve && nodeResolve({ - modulesOnly: true, + module: true, jsnext: true }), es3(),