修复build:ui打包出来的产物有问题bug,修复input组件本地开发报警告bug (#150)
* fix(grid): 修复cropperjs依赖超期的问题 * fix(build): 修复打包文件出错问题 * fix(input): 修复input组件本地开发报警告问题
This commit is contained in:
parent
abd16d855b
commit
582fa0df84
|
@ -191,8 +191,6 @@ async function batchBuildAll({ vueVersion, tasks, formats, message, emptyOutDir,
|
|||
utils.logGreen(`====== 开始构建 ${message} ======`)
|
||||
const entry = toEntry(tasks)
|
||||
|
||||
const entryPathSet = new Set(Object.values(entry))
|
||||
|
||||
const dtsInclude = toTsInclude(tasks)
|
||||
await build({
|
||||
configFile: false,
|
||||
|
@ -212,12 +210,6 @@ async function batchBuildAll({ vueVersion, tasks, formats, message, emptyOutDir,
|
|||
return false
|
||||
}
|
||||
|
||||
// 模块作为入口时不需要通过external分离
|
||||
const srcPath = path.resolve(importer, '..', source.split('?')[0])
|
||||
if (entryPathSet.has(srcPath)) {
|
||||
return false
|
||||
}
|
||||
|
||||
// 图标入口排除子图标
|
||||
if (/vue-icon\/(index|lowercase)/.test(importer)) {
|
||||
return /^\.\//.test(source)
|
||||
|
@ -306,7 +298,14 @@ function getTasks(names: string[]): Module[] {
|
|||
|
||||
export async function buildUi(
|
||||
names: string[] = [],
|
||||
{ vueVersions = ['2', '3'], buildTarget = '8.0', formats = ['es'], clean = false, dts = true, themeVersion }: BuildUiOption
|
||||
{
|
||||
vueVersions = ['2', '3'],
|
||||
buildTarget = '8.0',
|
||||
formats = ['es'],
|
||||
clean = false,
|
||||
dts = true,
|
||||
themeVersion
|
||||
}: BuildUiOption
|
||||
) {
|
||||
// 是否清空构建目录
|
||||
let emptyOutDir = clean
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"@opentiny/vue-common": "workspace:~",
|
||||
"@opentiny/vue-renderless": "workspace:~",
|
||||
"@opentiny/vue-icon": "workspace:~",
|
||||
"cropperjs": "1.5.7"
|
||||
"cropperjs": "1.5.13"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ export default defineComponent({
|
|||
},
|
||||
contentStyle: {
|
||||
type: Object,
|
||||
default: {}
|
||||
default: () => ({})
|
||||
},
|
||||
isSelect: {
|
||||
type: Boolean,
|
||||
|
@ -121,5 +121,4 @@ export default defineComponent({
|
|||
setup(props, context) {
|
||||
return $setup({ props, context, template })
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue