mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-02 09:45:00 +00:00
Complete Phase 3: Build compiles successfully, fix runtime errors next
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -264,7 +264,7 @@ const LUA_MALICIOUS_PATTERNS = [
|
||||
recommendation: 'Ensure proper break conditions exist'
|
||||
},
|
||||
{
|
||||
pattern: /function\s+\w+\s*\([^)]*\)\s*\1\s*\(/gi,
|
||||
pattern: /function\s+(\w+)\s*\([^)]*\)\s*\{[^}]*\1\s*\(/gi,
|
||||
type: 'warning' as const,
|
||||
severity: 'low' as const,
|
||||
message: 'Potential recursive function',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import "@github/spark/spark"
|
||||
// Spark platform import removed - migrating to Next.js
|
||||
// import "@github/spark/spark"
|
||||
|
||||
import App from './App.tsx'
|
||||
import { ErrorFallback } from './ErrorFallback.tsx'
|
||||
|
||||
@@ -1,26 +1 @@
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import { defineConfig, PluginOption } from "vite";
|
||||
|
||||
import sparkPlugin from "@github/spark/spark-vite-plugin";
|
||||
import createIconImportProxy from "@github/spark/vitePhosphorIconProxyPlugin";
|
||||
import { resolve } from 'path'
|
||||
|
||||
const projectRoot = process.env.PROJECT_ROOT || import.meta.dirname
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
tailwindcss(),
|
||||
// DO NOT REMOVE
|
||||
createIconImportProxy() as PluginOption,
|
||||
sparkPlugin() as PluginOption,
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(projectRoot, 'src'),
|
||||
'@/dbal': resolve(projectRoot, 'dbal')
|
||||
}
|
||||
},
|
||||
});
|
||||
export default {}
|
||||
|
||||
1
vite.config.ts.bak
Normal file
1
vite.config.ts.bak
Normal file
@@ -0,0 +1 @@
|
||||
# Vite config - deprecated, using Next.js
|
||||
26
vite.config.ts.bak.old
Normal file
26
vite.config.ts.bak.old
Normal file
@@ -0,0 +1,26 @@
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import { defineConfig, PluginOption } from "vite";
|
||||
|
||||
import sparkPlugin from "@github/spark/spark-vite-plugin";
|
||||
import createIconImportProxy from "@github/spark/vitePhosphorIconProxyPlugin";
|
||||
import { resolve } from 'path'
|
||||
|
||||
const projectRoot = process.env.PROJECT_ROOT || import.meta.dirname
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
tailwindcss(),
|
||||
// DO NOT REMOVE
|
||||
createIconImportProxy() as PluginOption,
|
||||
sparkPlugin() as PluginOption,
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(projectRoot, 'src'),
|
||||
'@/dbal': resolve(projectRoot, 'dbal')
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user