File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed
__fixtures__/test-project/web
packages/create-cedar-app/templates Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1+ - fix(cca): Better intellisense for JS apps (#108 ) by @Tobbe
2+
3+ By passing the config straight to ` createConfig ` also JS apps get intellisense help with setting the correct options
4+
5+ For the release notes: This is not a breaking change, but I still recommend
6+ that apps update their config files to stay in sync with our templates
Original file line number Diff line number Diff line change 11import dns from 'dns'
22
3- import type { UserConfig } from 'vite'
43import { defineConfig } from 'vite'
54
65import redwood from '@cedarjs/vite'
@@ -9,8 +8,6 @@ import redwood from '@cedarjs/vite'
98// See: https://vitejs.dev/config/server-options.html#server-host.
109dns . setDefaultResultOrder ( 'verbatim' )
1110
12- const viteConfig : UserConfig = {
11+ export default defineConfig ( {
1312 plugins : [ redwood ( ) ] ,
14- }
15-
16- export default defineConfig ( viteConfig )
13+ } )
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ import redwood from '@cedarjs/vite'
88// See: https://vitejs.dev/config/server-options.html#server-host.
99dns . setDefaultResultOrder ( 'verbatim' )
1010
11- const viteConfig = {
11+ export default defineConfig ( {
1212 plugins : [ redwood ( ) ] ,
13- }
14-
15- export default defineConfig ( viteConfig )
13+ } )
Original file line number Diff line number Diff line change 11import dns from 'dns'
22
3- import type { UserConfig } from 'vite'
43import { defineConfig } from 'vite'
54
65import redwood from '@cedarjs/vite'
@@ -9,8 +8,6 @@ import redwood from '@cedarjs/vite'
98// See: https://vitejs.dev/config/server-options.html#server-host.
109dns . setDefaultResultOrder ( 'verbatim' )
1110
12- const viteConfig : UserConfig = {
11+ export default defineConfig ( {
1312 plugins : [ redwood ( ) ] ,
14- }
15-
16- export default defineConfig ( viteConfig )
13+ } )
You can’t perform that action at this time.
0 commit comments