Skip to content

Commit d0a16f8

Browse files
ascott18Copilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5af3720 commit d0a16f8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/coalesce-vue-vuetify3/src
  • templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web

src/coalesce-vue-vuetify3/src/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function CoalesceVuetifyResolver() {
1414
const componentMap = new Map<string, string>();
1515
const exportRegex =
1616
/export\s*\{\s*default\s+as\s+(C[A-Z][A-Za-z]+)\s*\}\s*from\s*"\.\/(.+?)\.vue"/g;
17-
let match;
17+
let match: RegExpExecArray | null;
1818
while ((match = exportRegex.exec(componentIndex)) !== null) {
1919
const [, name, relPath] = match;
2020
componentMap.set(name, `coalesce-vue-vuetify3/components/${relPath}.js`);

templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
{
2828
name(moduleId) {
2929
// Suggest that top level node_modules folders should have their own chunk.
30-
return /node_modules[/\\]([^\/]+)/i.exec(moduleId)?.[1] ?? null;
30+
return /node_modules[/\\]([^/\\]+)/i.exec(moduleId)?.[1] ?? null;
3131
},
3232
},
3333
],

0 commit comments

Comments
 (0)