syntax-tree / hast-util-sanitize

utility to sanitize hast nodes
https://unifiedjs.com
MIT License
48 stars 20 forks source link

Webpack support #8

Closed zenizh closed 7 years ago

zenizh commented 7 years ago

The same as https://github.com/wooorm/remark/pull/264 , I got an error like as follow:

ERROR in ./~/hast-util-sanitize/lib/index.js
Module not found: Error: Can't resolve './github' in '/.../node_modules/hast-util-sanitize/lib'
 @ ./~/hast-util-sanitize/lib/index.js 14:15-34
 @ ./~/hast-util-sanitize/index.js

Some environment such as webpack don't work correctly without extension, so I change it. Thanks!

wooorm commented 7 years ago

This has been discussed before in GH-3, GH-1, and wooorm/remark#215!

zenizh commented 7 years ago

I'm sorry! 🙇 Thank you for your reply!

wooorm commented 7 years ago

No problem, thanks for helping, hope this works!