From 86f5a8b71bf3784229258014b409b02510ce991e Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:34:04 +0200 Subject: [PATCH] Rollup: use `preserveEntrySignatures = 'exports-only'` setting in lightweight build This is the default setting and it ensures that the main chunk does not include additional exports, which is is important when importing the module as `import *` as shown in the readme. In practice, this change does not affect the chunking with the current code. --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 1d723d6f..d8091f78 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -98,7 +98,7 @@ export default Object.assign([ { dir: 'dist/lightweight', entryFileNames: 'openpgp.mjs', chunkFileNames: chunkInfo => getChunkFileName(chunkInfo, 'mjs'), format: 'es', banner, intro }, { dir: 'dist/lightweight', entryFileNames: 'openpgp.min.mjs', chunkFileNames: chunkInfo => getChunkFileName(chunkInfo, 'min.mjs'), format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true } ], - preserveEntrySignatures: 'allow-extension', + preserveEntrySignatures: 'exports-only', plugins: [ resolve({ browser: true