jaywcjlove / remark-github-blockquote-alert

Alerts are a Markdown extension based on the blockquote syntax that you can use to emphasize critical information.
https://wangchujiang.com/remark-github-blockquote-alert/
11 stars 1 forks source link

Add css file to exports map #3

Open edoardocavazza opened 4 months ago

edoardocavazza commented 4 months ago

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 commented 4 months ago

@edoardocavazza Upgrade v1.2.1