SassDoc / sassdoc

Release the docs!
http://sassdoc.com
MIT License
1.41k stars 56 forks source link

esm support #568

Open jimmywarting opened 2 years ago

jimmywarting commented 2 years ago

not so much is needed to make this full ESM compatible without the need for a build tool...

just need to slam in full relative path and not using extension less paths, esm was not built for that.

Mandatory file extensions #

A file extension must be provided when using the import keyword to resolve relative or absolute specifiers. Directory indexes (e.g. './startup/index.js') must also be fully specified.

This behavior matches how import behaves in browser environments, assuming a typically configured server.