mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-16 22:50:32 -05:00
8 lines
202 B
JavaScript
8 lines
202 B
JavaScript
const pluginRE = /^(@vue\/|vue-|@[\w-]+\/vue-)cli-plugin-/
|
|
|
|
exports.isPlugin = id => pluginRE.test(id)
|
|
|
|
exports.isOfficial = id => /^@vue\//.test(id)
|
|
|
|
exports.toShortId = id => id.replace(pluginRE, '')
|