Eric Eastwood 2023-04-26 15:38:50 -05:00 committed by GitHub
parent 27863a1945
commit bc900f99b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ module.exports = defineConfig({
// See https://css-tricks.com/adding-vite-to-your-existing-web-app/#aa-aliases // See https://css-tricks.com/adding-vite-to-your-existing-web-app/#aa-aliases
'matrix-public-archive-shared': path.resolve(__dirname, '../shared'), 'matrix-public-archive-shared': path.resolve(__dirname, '../shared'),
}, },
// This will make sure Vite/Rollup matches the original file path (i.e. the path
// without following symlinks) instead of the real file path (i.e. the path after
// following symlinks). This is useful when symlinking `hydrogen-view-sdk`, so it
// still matches our `/node_modules/` pattern in the `build.commonjsOptions.include`
// config below and gets converted from CommonJS to ESM as expected.
preserveSymlinks: true,
}, },
build: { build: {
outDir: './dist', outDir: './dist',