From 859b93b133e9543f2923934040d22eeb45655915 Mon Sep 17 00:00:00 2001 From: David Jensenius Date: Fri, 29 Mar 2024 12:32:25 -0400 Subject: [PATCH] Named export for output --- rollup.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 6877e1c..a11f666 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -14,15 +14,16 @@ export default { format: 'cjs', name: 'index', file: 'dist/index.js', - exports: 'auto', + exports: 'named', banner: '/* @preserve bluelinky / MIT License / https://github.com/Hacksore/bluelinky */', }, { format: 'esm', name: 'index', + exports: 'named', file: 'dist/index.esm.js', banner: '/* @preserve bluelinky / MIT License / https://github.com/Hacksore/bluelinky */', - } + }, ], external: [...Object.keys(pkg.dependencies || {}), 'events', 'url', 'fs', 'util'], plugins: [