generated from sonofmagic/monorepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
version
v4.0.6
Link to minimal reproduction
https://www.npmjs.com/package/unplugin-tailwindcss-mangle/v/4.0.6?activeTab=code
Steps to reproduce
报错消息如下
Error: Cannot find module 'C:/miniprogram/node_modules/.pnpm/[email protected][email protected]/node_modules/unplugin-tailwindcss-mangle/dist/core/loader.cjs'
查找这里提到的core/loader.cjs,发现路径在该文件中定义
| const WEBPACK_LOADER = path.resolve(__dirname, __DEV__ ? '../../dist/core/loader.cjs' : 'core/loader.cjs') |
在查找了以前的npm包的内容之后,发现至少到v3.0.1,该文件都还是存在的。
版本进入到v4.0.0之后,整个 core/ 文件夹都不在dist/中了,这是正常的现象吗。如果v4.0.0之后确实移除了该文件,怎么会在webpack的loader中使用它?
tailwindcss-mangle/packages/unplugin-tailwindcss-mangle/src/core/factory.ts
Lines 63 to 70 in 226156b
| module.loaders.splice(idx, 0, { | |
| loader: WEBPACK_LOADER, | |
| ident: null, | |
| options: { | |
| ctx, | |
| }, | |
| type: null, | |
| }) |
What is expected?
安装的包中应该带有dist/core/loader.cjs
What is actually happening?
在v4.0.0之后就没有dist/core/loader.cjs了,既然有引用该路径,该文件应该存在
System Info
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working