Skip to content

Conversation

yangyuanxx
Copy link

@yangyuanxx yangyuanxx commented Aug 29, 2023

When webpack-uni-mp-loader call restoreNodeModules to restore the modulePath, it should support nested node_modules folder structure. e.g:

mp-alipay
|-- node-modules <-- first one
  |-- npm-scope-ali
    |-- ui-uniapp
      |-- node-modules <-- another nested one
        |-- @ali
          |-- primitive-uniapp

Before fixed:

restoreNodeModules returns: "node_modules/@ali/ui-uniapp/node-modules/@ali/primitive-uniapp"
(ATTENTION to the second node-modules, it should be node_modules)

After fixed:

restoreNodeModules returns: "node_modules/@ali/ui-uniapp/node_modules/@ali/primitive-uniapp"
(ATTENTION to the second node_modules, it is correct now)

@GRCmade GRCmade deleted the branch dcloudio:dev August 22, 2024 13:09
@GRCmade GRCmade closed this Aug 22, 2024
@GRCmade GRCmade reopened this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants