Skip to content

Commit

Permalink
bug: npm build not working #91
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Aug 19, 2024
1 parent eb7f6ec commit c6b9640
Show file tree
Hide file tree
Showing 3 changed files with 10,104 additions and 13 deletions.
16 changes: 8 additions & 8 deletions demos/playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import {defineConfig} from 'vite';
import {svelte} from '@sveltejs/vite-plugin-svelte';
import * as path from 'path';
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
// import * as path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
resolve: {
alias: {
yjs: path.resolve('./node_modules/yjs/src/index.js'),
},
},
// resolve: {
// alias: {
// yjs: path.resolve('./node_modules/yjs/src/index.js'),
// },
// },
build: {
rollupOptions: {
input: {
Expand Down
10 changes: 5 additions & 5 deletions demos/sveltekit/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {sveltekit} from '@sveltejs/kit/vite';
import {defineConfig} from 'vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [sveltekit()],
ssr: {
noExternal: [/^(lexical|@lexical\/.*)$/],
},
// ssr: {
// noExternal: [/^(lexical|@lexical\/.*)$/],
// },
});
Loading

0 comments on commit c6b9640

Please sign in to comment.