Open xiaoosi opened 2 years ago
related: #7802
related: #7802
I think vite should import A.less from ./node_module/testMoB/node_module/testMoA/A.less
but not import from ./node_module/testMoA/A.less
.
I only used testMoB and should not care about testMoA's version. The version of testMoA should be specified by testMoB.
Has anyone made progress on this issue? I'm running into a similar issue with SCSS files and the additionalData
is not working for .vue
files imported from a npm package.
Does merged fix above address this issue too?
Hello, I have a very similar problem.
I have 2 CSS repo built with Vite: A and B. B need A, so it's on the package.json under "dependencies" (the only one).
When I install B on another project, node_modules (and so A) it's missing so B doesn't work.
I don't understand. Shouldn't the package.json be enough?
P.S: They are both pure css libraries. The only js file it's the vite.config.js No error are shown during install or build. The node_modules file it's simply missing.
Describe the bug
I import a less file in src. this less file import B.less in node_module, B.less import A.less in moduleB own node_module. vite cant find A.less
Reproduction
https://github.com/xiaoosi/vite-css-test/blob/master/node_modules/testMoB/B.less
System Info
Used Package Manager
pnpm
Logs
Validations