alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)

Home Page:https://ice.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse errors occur when use speedup with fusion plugin

ClarkXia opened this issue · comments

Describe the bug

image
Parse errors occur when use speedup with fusion plugin

import { defineConfig } from '@ice/app';
import fusion from '@ice/plugin-fusion';

// The project config, see https://ice3.alibaba-inc.com/v3/docs/guide/basic/config
const minify = process.env.NODE_ENV === 'production' ? 'swc' : false;
export default defineConfig(() => ({
  ssg: false,
  minify,
  plugins: [
    fusion({
      importStyle: true,
      themePackage: '@alife/theme-88926',
    }),
  ],
  routes: {
    ignoreFiles: ['**/components/**'],
  },
  compileDependencies: false,
  codeSplitting: false,
}));

Expected behavior

Compile successfully.

Actual behavior

No response

Version of ice.js

3.4.3

Content of build.json or ice.config.mts

No response

Additional context

No response