Closed TheBosZ closed 6 years ago
I need some code to replicate that behaviour, to be able to fix that.
Sorry, the tests on that project replicate it but I can pull them out into an example if you'd like.
It looks like the extract addon is no longer forcing the lazy load of sheet.
This repo can show the issue: https://github.com/TheBosZ/nano-css-problems/
Run: npm i && npm run extract
The sheet has the button
property, but the resulting object no longer has the property.
In 2.2.0, the object returned from sheet()
was already loaded. Now it's back to being lazy-loaded.
This https://github.com/streamich/nano-css/pull/190 should fix your problem.
:tada: This issue has been resolved in version 3.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Perfect! 3.0.1 solves the bug!
I can't figure out exactly why, but v3.0.0 broke my plugin: https://bitbucket.org/TheBosZ/rollup-plugin-nano-css/
With 2.2.0, all tests pass, but with 3.0.0, calling
nano.sheet
returns an empty object instead of the expected string of class names.