mirror of https://github.com/alibaba/ice.git
fix: error when use plugin without config theme (#5747)
This commit is contained in:
parent
716df1583b
commit
a944cf7f2e
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## 1.0.1
|
||||
|
||||
- [fix] error occur when use plugin without config `theme`
|
||||
|
||||
## 1.0.0
|
||||
|
||||
- [feat] support use fusion component in ice.js framework.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ice/plugin-fusion",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "plugin for ICE while use fusion component",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
|
|
@ -71,7 +71,7 @@ const plugin: Plugin<PluginOptions> = (options = {}) => ({
|
|||
silent: true,
|
||||
});
|
||||
if (iconFile) {
|
||||
config.transformPlugins = [...(config.transformPlugins || []), importIcon(iconFile, theme['css-prefix'] || 'next-')];
|
||||
config.transformPlugins = [...(config.transformPlugins || []), importIcon(iconFile, theme?.['css-prefix'] || 'next-')];
|
||||
}
|
||||
// Modify webpack config of scss rule for fusion theme.
|
||||
config.configureWebpack ??= [];
|
||||
|
|
Loading…
Reference in New Issue