@modern-js/utils
Advanced tools
Comparing version 1.8.0 to 1.8.1
# @modern-js/utils | ||
## 1.8.1 | ||
### Patch Changes | ||
- 4f1889d: fix(utils): revert schema of unbundle plugin | ||
fix(utils): 恢复 unbundle 插件相关的 schema 配置 | ||
## 1.8.0 | ||
@@ -4,0 +12,0 @@ |
@@ -137,2 +137,31 @@ /** | ||
}[]; | ||
'@modern-js/plugin-unbundle': ({ | ||
target: string; | ||
schema: { | ||
type: string; | ||
properties?: undefined; | ||
}; | ||
} | { | ||
target: string; | ||
schema: { | ||
type: string; | ||
properties: { | ||
ignore: { | ||
type: string[]; | ||
items: { | ||
type: string; | ||
}; | ||
}; | ||
ignoreModuleCache: { | ||
type: string; | ||
}; | ||
clearPdnCache: { | ||
type: string; | ||
}; | ||
pdnHost: { | ||
type: string; | ||
}; | ||
}; | ||
}; | ||
})[]; | ||
'@modern-js/plugin-ssg': { | ||
@@ -139,0 +168,0 @@ target: string; |
@@ -92,2 +92,4 @@ "use strict"; | ||
}, | ||
// TODO: remove unbundle configs after we completely deprecate it. | ||
'@modern-js/plugin-unbundle': { cli: '@modern-js/plugin-unbundle' }, | ||
'@modern-js/plugin-server': { | ||
@@ -189,2 +191,24 @@ cli: '@modern-js/plugin-server/cli', | ||
], | ||
// TODO: remove unbundle configs after we completely deprecate it. | ||
'@modern-js/plugin-unbundle': [ | ||
{ | ||
target: 'output.disableAutoImportStyle', | ||
schema: { type: 'boolean' }, | ||
}, | ||
{ | ||
target: 'dev.unbundle', | ||
schema: { | ||
type: 'object', | ||
properties: { | ||
ignore: { | ||
type: ['string', 'array'], | ||
items: { type: 'string' }, | ||
}, | ||
ignoreModuleCache: { type: 'boolean' }, | ||
clearPdnCache: { type: 'boolean' }, | ||
pdnHost: { type: 'string' }, | ||
}, | ||
}, | ||
}, | ||
], | ||
'@modern-js/plugin-ssg': [ | ||
@@ -191,0 +215,0 @@ { |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"jsnext:source": "./src/index.ts", | ||
@@ -102,3 +102,3 @@ "types": "./dist/index.d.ts", | ||
"devDependencies": { | ||
"@modern-js/types": "1.6.0", | ||
"@modern-js/types": "1.6.2", | ||
"@scripts/build": "0.0.0", | ||
@@ -105,0 +105,0 @@ "@scripts/jest-config": "0.0.0", |
2449457
24796