Skip to content

Commit

Permalink
build: setup conditional exports instead of vite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssota committed May 6, 2024
1 parent c5c248c commit 083d0d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./server": {
"types": "./dist/server.d.ts",
"browser": "./dist/index.js",
"default": "./dist/server.js"
},
"./vite": {
"types": "./dist/vite.d.ts",
"default": "./dist/vite.js"
}
},
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions site/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { sveltetwc } from 'svelte-twc/vite';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [sveltekit(), sveltetwc()],
plugins: [sveltekit()],
base: './'
});
14 changes: 0 additions & 14 deletions src/vite.ts

This file was deleted.

0 comments on commit 083d0d2

Please sign in to comment.