first commit
This commit is contained in:
commit
2bcc676df1
24 files changed
+6255
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
build: {
|
||||
lib: {
|
||||
entry: 'src/index.tsx',
|
||||
formats: ['es'],
|
||||
fileName: () => 'index.js', // 🔥 이거 중요
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
'react',
|
||||
'react-dom',
|
||||
'lexical',
|
||||
'@lexical/react',
|
||||
'@lexical/html',
|
||||
'@lexical/list',
|
||||
'@lexical/markdown',
|
||||
'@lexical/rich-text',
|
||||
'@lexical/selection',
|
||||
'@lexical/utils',
|
||||
'@lexkit/editor',
|
||||
],
|
||||
output: {
|
||||
globals: {
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user