From a291890ab8d66b19c784610537ef77a8a79e49ad Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sun, 9 Jun 2024 08:29:32 -0700 Subject: [PATCH] add .module.min.js --- rollup.config.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/rollup.config.js b/rollup.config.js index f20c810..3ef9ecf 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -33,6 +33,23 @@ export default [ plugins, ...shared, }, + { + input: 'src/webgpu-utils.ts', + output: [ + { + file: `${dist}/webgpu-utils.module.min.js`, + format: 'esm', + sourcemap: true, + freeze: false, + banner, + }, + ], + plugins: [ + ...plugins, + terser(), + ], + ...shared, + }, { input: 'src/webgpu-utils.ts', output: [