- 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();