Enable on demand compile by config ice.config.mts
:
import { defineConfig } from '@ice/app';
import SpeedMeasurePlugin from 'speed-measure-webpack-plugin';
import customPlugin from './plugin';
export default defineConfig(() => ({
ssr: true,
server: {
onDemand: true,
// Strongly recommand to set esm format when use on demand compilation.
format: 'esm',
},
}));
- Feat: support routes config for custom routing rules. #5852
import { defineConfig } from '@ice/app';
export default defineConfig({
routes: {
config: [
{
path: 'rewrite',
// 从 src/page 开始计算路径,并且需要写后缀
component: 'sales/layout.tsx',
children: [
{
path: '/favorites',
component: 'sales/favorites.tsx',
},
{
path: 'overview',
component: 'sales/overview.tsx',
},
{
path: 'recommends',
component: 'sales/recommends.tsx',
},
],
},
{
path: '/',
component: 'index.tsx',
},
],
},
});
We strongly recommend to use file system routing, which makes routes more predictable and intuitive.
- Feat: support code spiliting strategy #5957
- Fix: usage of plugin request #5922 @luhc228
- Fix: do not compile non-js file when use plugin fusion #5937
- Fix: support unknown cli options registered by plugins #5989
- Fix: import path of types and runtime #5981
- Fix: compile error when declare
@jsx createElement
comment. Thanks for the PR from @MrpandaLiu - Fix: serveral problems when use stream render #5986 #5985 #5984 #5983 #5987 #5988 @chenjun1011
- Fix: props transformation when use
rax-compat
#5999 - Fix: break change for plugin PHA #5955 #5913 @answershuto