Skip to content

Commit da0de73

Browse files
committed
Take advantage of comma and newline correction in .mts.ejs files
1 parent 6e90b99 commit da0de73

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/create-vue-lib/src/template/playground/config/packages/playground/vite.config.mts.ejs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import vueDevTools from 'vite-plugin-vue-devtools'
77
<%_ if (config.includeAtAliases) { _%>
88
const librarySrc = fileURLToPath(new URL('../<%- config.mainPackageDirName %>/src/', import.meta.url))
99
const playgroundSrc = fileURLToPath(new URL('./src/', import.meta.url))
10-
1110
<%_ } _%>
11+
1212
export default defineConfig(({ mode }): UserConfig => ({
1313
plugins: [
1414
vue(),
@@ -38,7 +38,8 @@ export default defineConfig(({ mode }): UserConfig => ({
3838
<%_ } _%>
3939
},
4040
define: {
41-
__DEV__: mode !== 'production'<%_ if (config.includeTestVariable) { _%>,
41+
__DEV__: mode !== 'production',
42+
<%_ if (config.includeTestVariable) { _%>
4243
__TEST__: false
4344
<%_ } %>
4445
}

packages/create-vue-lib/src/template/vitepress/config/packages/docs/.vitepress/config.mts.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { defineConfigWithTheme } from 'vitepress'
55
<%_ if (config.includeAtAliases) { _%>
66
const librarySrc = fileURLToPath(new URL('../../<%- config.mainPackageDirName %>/src/', import.meta.url))
77
const playgroundSrc = fileURLToPath(new URL('../src/', import.meta.url))
8-
98
<%_ } _%>
9+
1010
export default ({ mode }: { mode: string }) => defineConfigWithTheme({
1111
srcDir: './src',
1212
outDir: './dist',
@@ -31,8 +31,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
3131
return [['link', { rel: 'canonical', href: canonicalUrl }]]
3232
}
3333
},
34-
3534
<%_ } _%>
35+
3636
vite: {
3737
resolve: {
3838
<%_ if (config.includeAtAliases) { _%>
@@ -78,8 +78,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
7878
socialLinks: [
7979
{ icon: 'github', link: '<%- config.githubUrl %>' }
8080
],
81-
8281
<%_ } _%>
82+
8383
sidebar: [
8484
{
8585
text: 'Getting started',

0 commit comments

Comments
 (0)