5.0.0-alpha.0
Reproduction linkhttps://github.com/Urie96/vue-cli-issue
Environment infowebpack5 has new feature externalsType, I try to extern vue by script, but i received a error in browser console when import *.vue
, it occur at last line
exports.install = function (vue, browserify) {
if (installed) { return }
installed = true
Vue = vue.__esModule ? vue.default : vue
version = Vue.version.split('.').map(Number)
Vue
is pending Promise, so version is undefined
vue create temp
vi vue.config.js
module.exports = { configureWebpack: (config) => ({ externalsType: 'script', externals: { vue: ['https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.min.js', 'Vue'], }}) }
console
Be able to see vue.js page
What is actually happening?white page and chrome console throw error
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4