fix:fixed theme-picker bug

This commit is contained in:
Pan
2017-11-29 14:11:25 +08:00
parent dd3e22d5a1
commit 0f5304112c
2 changed files with 4 additions and 4 deletions

View File

@@ -266,9 +266,8 @@ export function deepClone(source) {
return targetObj
}
// get dependencies verison from package.json by webpack.DefinePlugin
// get dependencies verison from package.json
export function getVersion(name) {
import('../../package').then(p => {
return p.dependencies[name]
})
const p = require('../../package')
return p.dependencies[name]
}