Skip to content

Commit

Permalink
refactor(playground): move new test to ESM to match upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Mar 16, 2023
1 parent a5e5dd4 commit 8a2b9b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion playground/assets/__tests__/url-base/vite.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('../../vite.config-url-base')
export { default } from '../../vite.config-url-base'
14 changes: 5 additions & 9 deletions playground/assets/vite.config-url-base.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/**
* @type {import('vite').UserConfig}
*/
import { defineConfig } from 'vite'
import baseConfig from './vite.config.js'

const { DEFAULT_PREVIEW_PORT } = require('vite')

const baseConfig = require('./vite.config.js')
module.exports = {
export default defineConfig({
...baseConfig,
base: 'http://localhost:4173/',
build: {
...baseConfig.build,
outDir: 'dist/url-base',
watch: false,
watch: null,
minify: false,
assetsInlineLimit: 0,
rollupOptions: {
Expand All @@ -25,4 +21,4 @@ module.exports = {
testConfig: {
baseRoute: '/url-base/',
},
}
})

0 comments on commit 8a2b9b0

Please sign in to comment.