-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommonJs not imported correctly on Windows #393
Comments
The same thing as: #379 We have to wait for a fix: unjs/mlly#28 |
For now you can add this to your
|
@sheremet-va Thanks. This works but it creates another issue:
I think it's because I have to directly import the css file in my component:
|
try |
well it wont work either |
Maybe something like this?
|
Ahh, nice that worked. |
Yeah, maybe we need to document that 👀 Full paths to file are needed. |
Describe the bug
Import CommonJs module results in undefined on windows. More specifically:
import { highlight, languages } from 'prismjs';
results in
languages
andhighlight
beingundefined
since it relies on the following exports:However
module.exports
isundefined
when running the test on windows.Reproduction
https://stackblitz.com/edit/node-vqbbph?file=test/example.test.ts.
Reproduce steps:
npm install && npm run test
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: