didi / didi/mpx

[Bug report]最新 2.11.1 版本好像插件与插件之间存在兼容问题,构建和运行报错 Cannot redefine property: __pluginName

Open
#2,555 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.9k
Forks
392
Avg merge
3d 12h
Merged PRs (30d)
15

Description

**问题描述**

构建运行都报错 Cannot redefine property: __pluginName

@mpxjs/unocss-plugin 从 CJS 改成了 ESM("type": "module"),但配套的 @mpxjs/vue-cli-plugin-mpx-utility-first-css 仍然用 require() 加载它,导致兼容性问题

麻烦有空确认一下是否存在这个问题

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect how @mpxjs/vue-cli-plugin-mpx-utility-first-css loads @mpxjs/unocss-plugin, focusing on the ESM/CJS boundary described in the report. Reproduce a build and run with version 2.11.1; done means the Cannot redefine property: __pluginName error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.