Skip to content

Ability to compile to a single default export #27

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

Open
flying-sheep opened this issue Apr 2, 2017 · 1 comment
Open

Ability to compile to a single default export #27

flying-sheep opened this issue Apr 2, 2017 · 1 comment

Comments

@flying-sheep
Copy link

rollup-plugin-postcss exports styles as default export.

i’d like to have this optionally output

declare namespace <basename> {
    const class1: string
    const class2: string
}
export default <basename>

(with <basename> being the camelized file name sans .css)

@vincerubinetti
Copy link

I'm not sure if this is the same thing this issue is asking for, but...

It would be great to be able to just export a single definition file, and scope styles to specific file paths (if that's even possible in TS...). Having a ton of extra .d.ts files really clutters up the repo, both in exploring the files locally and when looking at diffs. It'd be nice if it was just one big file that changed that could be safely ignored (and collapsed by default like in github's UI) like a lock file.

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

2 participants