arco-design / arco-plugins

Webpack / Vite plugins for Arco Design
https://arco.design
MIT License
68 stars 41 forks source link

fix: avoid multiple webpack instance #59

Open ahabhgk opened 9 months ago

ahabhgk commented 9 months ago

Types of changes

Background and context

img_v3_028o_12e5ad38-2f26-460e-819a-6138cd5602hu

Solution

require("webpack") is a common misuses in webpack plugin, which will cause multiple webpack instance problem in monorepo, the correct way to get the webpack instance is compiler.webpack

How is the change tested?

Changelog

Changelog(CN) Changelog(EN) Related issues

Checklist:

Other information