Skip to content
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

Add css file to exports map #3

Open
edoardocavazza opened this issue May 8, 2024 · 1 comment
Open

Add css file to exports map #3

edoardocavazza opened this issue May 8, 2024 · 1 comment

Comments

@edoardocavazza
Copy link

Hello!

Currently, the CSS file cannot be imported if using the node resolution algorithm for module packages because the alert.css is not exported in the package.json.

Package subpath 'undefined' is not defined by "exports" in /Users/edo/Projects/chialab/catalog/node_modules/remark-github-blockquote-alert/package.json.

I would suggest to change the "exports" field to

"exports": {
  ".": "./lib/index.js",
  "./alert.css": "./alert.css"
},
jaywcjlove added a commit that referenced this issue May 9, 2024
jaywcjlove added a commit that referenced this issue May 9, 2024
@jaywcjlove
Copy link
Owner

@edoardocavazza Upgrade v1.2.1

github-actions bot added a commit that referenced this issue May 9, 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

No branches or pull requests

2 participants