We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.0.8
None
windows
最简单的初始化项目 vue create hello-world
调整main.js,输出aa函数 import { createApp } from 'vue' import App from './App.vue'
createApp(App).mount('#app')
function aa () { console.log(1) }
export { aa }
调整vue.config.js,希望打包出window.Vue3 const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ filenameHashing: false, transpileDependencies: true, configureWebpack: { output: { library: Vue3, libraryTarget: 'umd' } } })
Vue3
希望script标签引入打包后的文件,页面window.Vue3能使用
结果,window.Vue3 undefined
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
5.0.8
Reproduction link
None
Environment info
Steps to reproduce
最简单的初始化项目
vue create hello-world
调整main.js,输出aa函数
import { createApp } from 'vue'
import App from './App.vue'
createApp(App).mount('#app')
function aa () {
console.log(1)
}
export { aa }
调整vue.config.js,希望打包出window.Vue3
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
filenameHashing: false,
transpileDependencies: true,
configureWebpack: {
output: {
library:
Vue3
,libraryTarget: 'umd'
}
}
})
What is expected?
希望script标签引入打包后的文件,页面window.Vue3能使用
What is actually happening?
结果,window.Vue3 undefined
The text was updated successfully, but these errors were encountered: