umijs / mako

An extremely fast, production-grade web bundler based on Rust.
https://makojs.dev
MIT License
1.75k stars 65 forks source link

FEATURE : Support chainWebpack like option #1497

Open SquirrelDeveloper opened 1 month ago

SquirrelDeveloper commented 1 month ago

Hi, This project seems awesome, however, I can't use it because my current UmiJS Max configuration uses

  chainWebpack(memo: any) {
    memo.plugin('monaco-editor').use(MonacoEditorWebpackPlugin, []);
    return memo;
  },

Ans this feature is not yet supported

stormslowly commented 1 month ago

if you just use monaco-editor plugin in chainWebpack, you can reference to this example https://github.com/umijs/mako/blob/master/examples/with-antd/src/pages/monaco-editor.tsx using @monaco-editor/react instead

SquirrelDeveloper commented 1 month ago

Removing the webpackchain option is giving me another error and warning with Umi Max :

  Mako bundler does not support the following options:
  - theme.[object value]

configuration:

theme: {
    'root-entry-name': 'variable',
    token: {
      colorBgSpotlight: '#1d222e',
    },
    components: {
      Modal: {
        contentBg: '#1d222e',
        headerBg: '#1d222e',
      },
    },
  },

And another un-related error:

 fatal - Error: Cannot find module '@umijs/mako-linux-arm64-musl'
stormslowly commented 1 month ago
 fatal - Error: Cannot find module '@umijs/mako-linux-arm64-musl'

i will add this target soon