diff --git a/Makefile b/Makefile index 27a3769..ce6421a 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,6 @@ highlight-css: build-editor: @echo "Building Tiptap editor..." @cd libs/tiptap-editor && npm install && npx vite build - @mv public/tiptap/editor.iife.js public/tiptap/editor.js 2>/dev/null || true - @mv public/tiptap/editor.iife.js.map public/tiptap/editor.js.map 2>/dev/null || true @echo "Tiptap editor built." dev: diff --git a/libs/tiptap-editor/vite.config.ts b/libs/tiptap-editor/vite.config.ts index d86ad5b..f1924b4 100644 --- a/libs/tiptap-editor/vite.config.ts +++ b/libs/tiptap-editor/vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ lib: { entry: resolve(__dirname, 'src/index.ts'), name: 'TiptapEditor', - fileName: 'editor', + fileName: () => 'editor.js', formats: ['iife'], }, rollupOptions: {