Skip to content

Commit 585a3e2

Browse files
fix(app): allow launching app dev server w/o relying on supportFile to bundle deps (#18354)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
1 parent 8e3bb32 commit 585a3e2

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

packages/app/cypress.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
"reporterOptions": {
1515
"configFile": "../../mocha-reporter-config.json"
1616
},
17+
"componentFolder": "src",
18+
"supportFile": false,
1719
"component": {
18-
"componentFolder": "src"
19-
},
20-
"e2e": {
21-
"supportFile": false
20+
"testFiles": "**/*.spec.{js,ts,tsx,jsx}"
2221
}
2322
}

packages/app/src/Basic.spec.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
describe('hello', () => {
2+
it('works', () => {
3+
expect(1).to.eq(1)
4+
})
5+
})

packages/app/vite.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@ import { makeConfig } from '../frontend-shared/vite.config'
22
import Layouts from 'vite-plugin-vue-layouts'
33
import Pages from 'vite-plugin-pages'
44

5-
export default makeConfig({}, {
5+
export default makeConfig({
6+
optimizeDeps: {
7+
include: [
8+
'@urql/core',
9+
'vue-i18n',
10+
'vue-router',
11+
'@urql/devtools',
12+
'@urql/exchange-graphcache',
13+
],
14+
},
15+
}, {
616
plugins: [
717
Layouts(),
818
Pages({ extensions: ['vue'] }),

0 commit comments

Comments
 (0)