@vuepress/plugin-register-components
Advanced tools
Comparing version 2.0.0-rc.37 to 2.0.0-rc.42
@@ -17,4 +17,6 @@ import { getComponentsFromDir } from './getComponentsFromDir.js'; | ||
enhance: ({ app }) => {\ | ||
${Object.entries(componentsMap).map(([name, filepath]) => ` | ||
app.component(${JSON.stringify(name)}, defineAsyncComponent(() => import(${JSON.stringify(filepath)})))`)} | ||
${Object.entries(componentsMap) | ||
.map(([name, filepath]) => ` | ||
app.component(${JSON.stringify(name)}, defineAsyncComponent(() => import(${JSON.stringify(filepath)})))`) | ||
.join('\n ')} | ||
}, | ||
@@ -21,0 +23,0 @@ } |
@@ -25,6 +25,6 @@ import chokidar from 'chokidar'; | ||
componentsWatcher.on('add', () => { | ||
prepareClientConfigFile(app, options, optionsHash); | ||
void prepareClientConfigFile(app, options, optionsHash); | ||
}); | ||
componentsWatcher.on('unlink', () => { | ||
prepareClientConfigFile(app, options, optionsHash); | ||
void prepareClientConfigFile(app, options, optionsHash); | ||
}); | ||
@@ -31,0 +31,0 @@ watchers.push(componentsWatcher); |
{ | ||
"name": "@vuepress/plugin-register-components", | ||
"version": "2.0.0-rc.37", | ||
"version": "2.0.0-rc.42", | ||
"description": "VuePress plugin - register-components", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"vuepress": "2.0.0-rc.14" | ||
"vuepress": "2.0.0-rc.15" | ||
}, | ||
@@ -42,3 +42,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "3754bbda881d738a0dcfacc5172a70af67505013" | ||
"gitHead": "66e494405a7fbb02f6d46d7be670ec69605b7606" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7153
10
116