diff --git a/rollup.config.ts b/rollup.config.ts index 4c0f593..f9805c4 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -10,20 +10,13 @@ export default defineConfig({ commonjs(), typescript({ "tsconfig": "./tsconfig.json", - "include": "**/*.[jt]s", + "include": "**/*.(j|t)s", }) ], - "output": [ - { - "name": "CommonJS Bundle", - "file": "dist/yjs.js", - "format": "cjs", - "exports": "default", - }, - { - "name": "ECMAScript Bundle", - "file": "dist/yjs.mjs", - "format": "es", - } - ], + "output": + { + "name": "yjs", + "file": "dist/yjs.js", + "format": "umd", + }, }); \ No newline at end of file