Skip to content

fix(webpack): apply-css-loader not applying css #8811

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

Merged
merged 4 commits into from
Sep 6, 2020

Conversation

rigor789
Copy link
Member

@rigor789 rigor789 commented Sep 3, 2020

Now that everything is using ES modules, the exports object no longer exists.

css-loader adds the ___CSS_LOADER_EXPORT___ variable to the module, and then exports it. This allows us to hook into it, and apply the css to a NativeScript app.

This fixes Vue apps in NativeScript 7. See nativescript-vue/nativescript-vue#715

I believe require("@nativescript/core/ui/styling/style-scope") is no longer needed - because globals are handled differently (testing the change in an app works fine) - but @NathanWalker please take a look!

The change has been released under 3.0.1-rc.0.

@cla-bot cla-bot bot added the cla: yes label Sep 3, 2020
@rigor789 rigor789 changed the title Fix/apply css loader fix(webpack): apply-css-loader not applying css Sep 3, 2020
@rigor789 rigor789 merged commit c1a2d54 into master Sep 6, 2020
@romandrahan
Copy link

romandrahan commented Sep 9, 2020

Looks like broken again in 3.0.2 release.

@rigor789
Copy link
Member Author

rigor789 commented Sep 9, 2020

@romandragan has not been released yet - only in 3.0.1-rc.0 - I will release it in 3.0.3 shortly! Totally my fault - I postponed releasing it after I merged it, and then forgot to...

@rigor789
Copy link
Member Author

rigor789 commented Sep 9, 2020

Released in 3.0.3!

@rigor789 rigor789 deleted the fix/apply-css-loader branch September 9, 2020 09:32
tarunama pushed a commit to tarunama/NativeScript that referenced this pull request Sep 9, 2020
* fix(webpack): apply-css-loader not applying css

* chore: bump webpack version to rc

* fix: import style scope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants