Skip to content

Commit

Permalink
fix: update @brillout/vite-plugin-import-build -> @brillout/vite-plug…
Browse files Browse the repository at this point in the history
…in-server-entry
  • Loading branch information
brillout committed Jan 7, 2024
1 parent e6e8283 commit 8f9e77a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions telefunc/node/vite/loadTelefuncFilesWithVite.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { loadTelefuncFilesWithVite }

import { loadServerBuild } from '@brillout/vite-plugin-import-build/loadServerBuild'
import { importServerEntry } from '@brillout/vite-plugin-server-entry/importServerEntry'
import { assert, assertWarning, getNodeEnv, hasProp, isObject, isProduction, isTelefuncFilePath } from '../utils'
import { telefuncFilesGlobFilePath } from './importGlob/telefuncFilesGlobPath'
import { loadTelefuncFilesWithImportBuild } from './plugins/importBuild/loadBuild'
Expand Down Expand Up @@ -36,7 +36,7 @@ async function loadGlobImporter() {
let moduleExports: unknown
moduleExports = await loadTelefuncFilesWithImportBuild()
if (moduleExports === null) {
await loadServerBuild()
await importServerEntry()
moduleExports = await loadTelefuncFilesWithImportBuild()
assert(moduleExports)
} else {
Expand Down
4 changes: 2 additions & 2 deletions telefunc/node/vite/plugins/importBuild/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { importBuild }

import { importBuild as importBuild_ } from '@brillout/vite-plugin-import-build/plugin'
import { serverEntryPlugin } from '@brillout/vite-plugin-server-entry/plugin'
import type { Plugin, ResolvedConfig } from 'vite'
import { assert, assertPosixPath, getOutDirAbsolute, projectInfo, toPosixPath } from '../../utils'
import path from 'path'
Expand All @@ -17,7 +17,7 @@ function importBuild(): Plugin[] {
config = config_
}
},
importBuild_({
serverEntryPlugin({
getImporterCode: () => {
return getImporterCode(config)
},
Expand Down
2 changes: 1 addition & 1 deletion telefunc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@brillout/import": "^0.2.3",
"@brillout/json-serializer": "^0.5.6",
"@brillout/picocolors": "^1.0.10",
"@brillout/vite-plugin-import-build": "^0.3.1",
"@brillout/vite-plugin-server-entry": "^0.4.1",
"es-module-lexer": "^0.7.1",
"picocolors": "^1.0.0",
"ts-morph": "^19.0.0"
Expand Down

0 comments on commit 8f9e77a

Please sign in to comment.