Skip to content

Commit fcc0e79

Browse files
committed
fix: template config sanitization is not effective
1 parent 9f9de02 commit fcc0e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/loadTemplateConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ module.exports = async templatePath => {
6060

6161
const entryPath = join(templatePath, packageJson.main)
6262

63-
const config = await loadEntryFile(entryPath)
63+
let config = await loadEntryFile(entryPath)
6464

6565
try {
66-
checkConfig(config)
66+
config = checkConfig(config)
6767
} catch(e) {
6868
throwError('Template configuration error')
6969
}

0 commit comments

Comments
 (0)