Skip to content

Commit

Permalink
refactor: always load config with esbuild bundled code (#9121)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jul 14, 2022
1 parent 30193ae commit 4e7b285
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions playground/ssr-vue/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const nestedVirtualId = '\0' + nestedVirtualFile

const base = '/test/'

// preserve this to test loading __filename & __dirname in ESM as Vite polyfills them.
// if Vite incorrectly load this file, node.js would error out.
globalThis.__vite_test_filename = __filename
globalThis.__vite_test_dirname = __dirname

export default defineConfig(({ command, ssrBuild }) => ({
base,
plugins: [
Expand Down

0 comments on commit 4e7b285

Please sign in to comment.