bugfix-打包报错: line-store.js TypeError: Cannot read properties of undefined (reading 'prototype') 报错原因:protobufjs包使用vite打包导致代码顺序问题(使用在声明之前),通过配置添加alias,直接使用已经build好的protobufjs代码
This commit is contained in:
parent
f3ef2bb9d1
commit
328e1340eb
@ -73,10 +73,11 @@ module.exports = configure(function (/* ctx */) {
|
||||
// polyfillModulePreload: true,
|
||||
// distDir
|
||||
// distDir: `dist/${BasePath}`,
|
||||
distDir: 'dist/bjrtss',
|
||||
|
||||
// extendViteConf (viteConf) {},
|
||||
// viteVuePluginOptions: {},
|
||||
|
||||
alias: { 'protobufjs/light': 'protobufjs/dist/light/protobuf.min.js' },
|
||||
// vitePlugins: [
|
||||
// [ 'package-name', { ..options.. } ]
|
||||
// ]
|
||||
|
Loading…
Reference in New Issue
Block a user