Skip to content

v3.2.10

Compare
Choose a tag to compare
@ClarkXia ClarkXia released this 22 Aug 02:02
· 289 commits to master since this release
dd81060
  • 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();