Releases: alibaba/ice
Releases · alibaba/ice
v3.3.3
- Support config css modules name by user config #6289
import { defineConfig } from '@ice/app';
export default defineConfig(() => ({
cssModules: {
localIdentName: '[hash:8]',
},
}));
- New plugin deal with stream error, it will fallback to CSR automatically when steam error #6530
import { defineConfig } from '@ice/app';
import streamError from '@ice/plugin-stream-error';
export default defineConfig(() => ({
plugins: [
streamError(),
],
}));
- Compat with the build case which do not need document #6536
v3.3.2
- Throw error when server compile failed #6508
- Should not import runtime module and routes when CSR #6507
- Redirect import of definePageConfig #6505
- Remove sourcemap definition when publish packages #6511
- Do not store base64 automatically while it may cause insufficient memory #6488
- Support custom middleware for speedup mode #6520
- Browser compatibility of dataLoader #6522
- Fix params urls for hooks before.start.run #6525
- Fix hydration error when use plugin-canvas #6521
v3.3.1
- Ignore static resource when render server entry #6484
- Runtime in document should compat with old browsers #6478
- Fix typo of app data specifier which cause twice request of app data loader #6480
- Bump dependencies version including @swc/core, rspack #6501
- Compatible with win32 when enable
--speedup
#6497 - Mark polyfill signal as es module, so it won't break the compilation #6500
v3.3.0
- 🎉 Support new bundler (
rspack
) to speed up both local development, as well as production builds.
Enable feature through ice start --speedup
:
{
"scripts": {
"start": "ice start --speedup",
"build": "ice build --speedup"
},
}
- 🎉 Update plugin and compiler tools based on Rust, improve compile time.
v3.2.10
- Fix HMR failed when export pageConfig or dataLoader in page routes #6442
- Compatible with Win32 when onDemand compiling is enabled #6466
- Support define route with absolute path
import { defineConfig } from '@ice/app';
export default defineConfig({
routes: {
defineRoutes: (route) => {
// Limitation: about.tsx should locate in root dir
route('/hello', '/absolute/path/to/about.tsx');
},
},
});
- Add exports of service for node API
// Support Node API for other build tools.
import createService from '@ice/app/service';
const service = createService({ rootDir: '', command: 'start', commadArgs: {} });
service.run();
v3.2.9
- Feat: support custom render #6398
// Export runApp in `src/app.ts` allows to customize render options
export const runApp = (render, option) => {
render();
};
v3.2.8
- Feat: support to remove react-router even route count is greater than 1 #6382
import { defineConfig } from '@ice/app';
// Remove react-router in case of render page like MPA mode.
export default defineConfig(() => ({
optimization: { disableRouter: true },
}));
- Feat: enhance dropLogLevel config, support specify array of drop level #6376
import { defineConfig } from '@ice/app';
export default defineConfig(() => ({
dropLogLevel: ['trace', 'warn'],
}));
- Feat: support new code splitting strategy
page-vendors
#6386
import { defineConfig } from '@ice/app';
export default defineConfig(() => ({
codeSplitting: 'page-vendors',
}));
v3.2.7
- Feat: support htmlGenerating to control html generation #6346
export default defineConfig(() => ({
// Configrate htmlGenerating to disable html generation.
htmlGenerating: false,
});
v3.2.6
- Feat: support document API
usePageAssets
#6238 - Fix: load route module error when only has one router #6297
- Fix: task alias not be consumed #6296
- Fix: compat with streaming api in miniapp #6268 @hzyhbk
- Fix: replace history methods by router navigate for backwards compatibility #6317
- Fix: refactor error handling and update error overlay #6286
- Fix: server dataLoader error #6316
- Fix: client send extra useless requests in render mode SSR #6307 @malei0311
- Fix: support source map for stack trace in node #6322
- Fix: single router optimization #6310
import { defineConfig } from '@ice/app';
export default defineConfig(() => ({
// Active feature by config optimization.router `true`
optimization: {
router: true,
},
}));
v3.2.5
- Fix: bump react-router version to fix remix-run/react-router#10469
- Fix: auto polyfill for abortcontroller