vue2引入vue3插件 ES版本問題

/* You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
原因:系統用 Webpack4,組件庫用 Webpack5。存在 ES 版本及轉換問題;
vue.config.js 文件中設置屬性 transpiledependencies
*/

module.exports = {
	transpileDependencies: ['cesium-plot-ms'], // 加上這行 內容未依賴名稱
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章