Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Rollup config: Extracted CSS sourcemaps always generated #537

Closed
laurentpayot opened this issue Dec 20, 2018 · 2 comments · Fixed by #768
Closed

Rollup config: Extracted CSS sourcemaps always generated #537

laurentpayot opened this issue Dec 20, 2018 · 2 comments · Fixed by #768

Comments

@laurentpayot
Copy link

config.client.output() always return an object with a truthy sourcemap property, so I get sourcemap files for both js and css files.

Even when using

output: {...config.client.output(), sourcemap: dev}

when dev is falsy I still get sourcemap files for css files (but not for js files).

Is it related to #421 ?

@teoxoy
Copy link
Contributor

teoxoy commented Jun 27, 2019

This happens because rollup doesn't care about other sourcemaps than js ones.

The only way to get this to work is to pass in a sourcemap option to rollup-plugin-svelte. This not currently supported but I am looking into it and will probably start a PR for it.

@teoxoy
Copy link
Contributor

teoxoy commented Jun 27, 2019

Looks like sapper does some custom plugin injection for rollup and the answer was to implement this into sapper. I included a commit that will add this functionality in my PR.

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

Successfully merging a pull request may close this issue.

2 participants