Skip to content
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

Optimize imports of css, styled and utils #236

Open
Tyderion opened this issue Dec 9, 2024 · 0 comments
Open

Optimize imports of css, styled and utils #236

Tyderion opened this issue Dec 9, 2024 · 0 comments

Comments

@Tyderion
Copy link
Collaborator

Tyderion commented Dec 9, 2024

Currently transformed inputs for those functions are as follows:

import { css } from "next-yak/internal"

css``

If we optimize and use same trick as used in #154 and import it the following way:

import * as __yak from "next-yak/internal"

__yak.css``

Webpack will better optimize bundle size because it can use (minified, e.g.) s.As instead of (0, s.As) to access those functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant