-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help upgrading to 1.x #64
Comments
|
seems we can really simplify this too: rollup-plugin-postcss/src/postcss-loader.js Lines 29 to 41 in 1820cf5
it just feels weird to import /ping @lmihaidaniel what do you think? |
Maybe simply camelcase the name and prefix with |
That would certainly work for me. I didn't bother to deal with the reserved word case, as I figure it will simply break right away and the developer will just change the class name. But I guess being able to |
See https://github.com/egoist/rollup-plugin-postcss#namedexports it can be a function now in We might simplify the default havior in v2.0 since it's a breaking change. |
Thanks for the change, I was waiting for that. so if you only do
|
You could do this to get all classes:
|
yeah, thanks, I already did that for now... |
hmm it should be in default export too, otherwise there must be something wrong in the code.. |
I fixed the issue in a fork, would you accept a pull request? |
@mosanger fixed what? |
Named exports not being in the default export |
@mosanger OK, LGTM, PR welcome 😄 |
Hi and thanks for this great Rollup plugin. It's been working well for me.
I am looking to upgrade from version
0.5.6
to1.2.7
but am having difficulty figuring out what changes I need to make.My use case is a React app with CSS modules. The existing setup is below:
The main goal of this special config is to enabled named imports with the more idiomatic convention of camelcase names, avoiding the
--
to$__$
conversion that this plugin does by default.... much better than ...
This worked perfectly prior to
1.0.0
. Now I see output like below.Based on what I see in the README now, I tried using the
modules
option, as below.But there was no effect, the output remains the same. Based on some logging I tried, it seems that
getExport()
is no longer being called.I'm happy to migrate to any other pattern that achieves the same end goal of importing classes as camelcased names. Any advice on how to upgrade would be much appreciated.
The text was updated successfully, but these errors were encountered: