feat(env): temporary revert frontend implementation (#609)

This commit is contained in:
Marco Pasqualetti
2025-02-27 08:35:06 +01:00
committed by GitHub
parent caf1a58a0b
commit 3063763667
14 changed files with 4 additions and 24 deletions
-3
View File
@@ -11,6 +11,3 @@ node_modules
.tuono
out
target
# Ignore local env files
*.local
-1
View File
@@ -11,7 +11,6 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"types": ["tuono/build-client"],
// Interop Constraints
"isolatedModules": true,
-3
View File
@@ -11,6 +11,3 @@ node_modules
.tuono
out
target
# Ignore local env files
*.local
+4
View File
@@ -0,0 +1,4 @@
declare module '*.module.css' {
const classes: Record<string, string>
export default classes
}
-1
View File
@@ -11,7 +11,6 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"types": ["tuono/build-client"],
// Interop Constraints
"isolatedModules": true,
-3
View File
@@ -11,6 +11,3 @@ node_modules
.tuono
out
target
# Ignore local env files
*.local
-1
View File
@@ -11,7 +11,6 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"types": ["tuono/build-client"],
// Interop Constraints
"isolatedModules": true,
-3
View File
@@ -11,6 +11,3 @@ node_modules
.tuono
out
target
# Ignore local env files
*.local
-1
View File
@@ -11,7 +11,6 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"types": ["tuono/build-client"],
// Interop Constraints
"isolatedModules": true,
-3
View File
@@ -27,9 +27,6 @@
"types": "./dist/esm/build/index.d.ts",
"default": "./dist/esm/build/index.js"
},
"./build-client": {
"types": "./dist/esm/build-client/index.d.ts"
},
"./config": {
"types": "./dist/esm/config/index.d.ts",
"default": "./dist/esm/config/index.js"
-1
View File
@@ -1 +0,0 @@
import 'vite/client'
-1
View File
@@ -2,4 +2,3 @@ export const DOT_TUONO_FOLDER_NAME = '.tuono'
export const CONFIG_FOLDER_NAME = 'config'
export const CONFIG_FILE_NAME = 'config.mjs'
export const SERVER_CONFIG_NAME = 'config.json'
export const ENV_PREFIX = 'TUONO_PUBLIC_'
-2
View File
@@ -8,7 +8,6 @@ import type { TuonoConfig } from '../config'
import { blockingAsync } from './utils'
import { createJsonConfig, loadConfig } from './config'
import { ENV_PREFIX } from './constants'
const VITE_SSR_PLUGINS: Array<Plugin> = [
{
@@ -46,7 +45,6 @@ function createBaseViteConfigFromTuonoConfig(
publicDir: '../public',
cacheDir: 'cache',
envDir: '../',
envPrefix: ENV_PREFIX,
resolve: {
alias: tuonoConfig.vite?.alias ?? {},
-1
View File
@@ -13,7 +13,6 @@ export default mergeConfig(
'./src/index.ts',
'./src/build/index.ts',
'./src/config/index.ts',
'./src/build-client/index.ts',
'./src/ssr/index.ts',
'./src/hydration/index.tsx',
],