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

Allow css tag to be exported #1430

Open
dndrsn opened this issue Jan 2, 2025 · 0 comments
Open

Allow css tag to be exported #1430

dndrsn opened this issue Jan 2, 2025 · 0 comments
Labels
enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed needs: triage 🏷 Issue needs to be checked and prioritized

Comments

@dndrsn
Copy link

dndrsn commented Jan 2, 2025

Describe the enhancement

Allow/enable export of the css tag from another file. For example...

// ./style.js

export { css } from '@linaria/core';

...

// ./other-file.js

import { css, somethingElse, anotherExport } from './style.js';

When this is done currently, the following error is produced...

Error: Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.

Motivation

This would be convenient for organizational flexibility. In my use case, I have helper functions that are naturally imported with the css tag. I would prefer to import from a single file with a single line.

@dndrsn dndrsn added the enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed label Jan 2, 2025
@github-actions github-actions bot added the needs: triage 🏷 Issue needs to be checked and prioritized label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed needs: triage 🏷 Issue needs to be checked and prioritized
Projects
None yet
Development

No branches or pull requests

1 participant