Closed Justineo closed 4 years ago
I've added some tests (including a regression test for import
mentioned in https://github.com/less/less.js/issues/3294#issuecomment-407108658).
@matthew-dean It would be very appreciated if you can take a look at this when you have time :)
Thanks!
Currently the only way to compile Less code synchronously is by setting
syncImport: true
. But as described in #3294, it cannot work when it involves plugins. In factloadPlugin
didn't have a sync version. This PR added aloadPluginSync
method to fix this problem.PS. I didn't quite understand how tests work so tests are not included. Any help would be appreciated.Please note: compiled files are not included in this PR.