diff --git a/package.json b/package.json index 1a7a6f49..955dce86 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "dist/" ], "scripts": { - "build": "rollup --config --sourcemap", + "build": "rollup --config", "prepare": "npm run build", "test": "mocha --timeout 120000 test/unittests.js", "start": "http-server", diff --git a/rollup.config.js b/rollup.config.js index ec22a8d6..5a668d9e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -28,9 +28,9 @@ export default [ input: 'src/index.js', output: [ { file: 'dist/openpgp.js', format: 'iife', name: pkg.name, banner, intro }, - { file: 'dist/openpgp.min.js', format: 'iife', name: pkg.name, banner, intro, plugins: [terser(terserOptions)] }, + { file: 'dist/openpgp.min.js', format: 'iife', name: pkg.name, banner, intro, plugins: [terser(terserOptions)], sourcemap: true }, { file: 'dist/openpgp.mjs', format: 'es', banner, intro }, - { file: 'dist/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)] } + { file: 'dist/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true } ], inlineDynamicImports: true, plugins: [ @@ -53,9 +53,9 @@ export default [ external: builtinModules.concat(nodeDependencies), output: [ { file: 'dist/node/openpgp.js', format: 'cjs', name: pkg.name, banner, intro }, - { file: 'dist/node/openpgp.min.js', format: 'cjs', name: pkg.name, banner, intro, plugins: [terser(terserOptions)] }, + { file: 'dist/node/openpgp.min.js', format: 'cjs', name: pkg.name, banner, intro, plugins: [terser(terserOptions)], sourcemap: true }, { file: 'dist/node/openpgp.mjs', format: 'es', banner, intro }, - { file: 'dist/node/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)] } + { file: 'dist/node/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true } ], plugins: [ resolve(), @@ -69,7 +69,7 @@ export default [ input: 'src/index.js', output: [ { dir: 'dist/lightweight', entryFileNames: 'openpgp.mjs', chunkFileNames: '[name].mjs', format: 'es', banner, intro }, - { dir: 'dist/lightweight', entryFileNames: 'openpgp.min.mjs', chunkFileNames: '[name].min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)] } + { dir: 'dist/lightweight', entryFileNames: 'openpgp.min.mjs', chunkFileNames: '[name].min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true } ], preserveEntrySignatures: 'allow-extension', plugins: [ @@ -89,7 +89,7 @@ export default [ { input: 'test/unittests.js', output: [ - { file: 'test/lib/unittests-bundle.js', format: 'es' }, + { file: 'test/lib/unittests-bundle.js', format: 'es', sourcemap: true }, ], plugins: [ resolve({