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

feat: Pass filename option to preprocess hooks #987

Merged
merged 5 commits into from
Dec 9, 2017

Conversation

tivac
Copy link
Contributor

@tivac tivac commented Dec 7, 2017

If the options object passed to svelte.preprocess() contains a filename property it'll be passed along to all the hooks so they can make file-system aware transformations.

Fixes #983

@codecov-io
Copy link

Codecov Report

Merging #987 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #987   +/-   ##
=======================================
  Coverage   91.86%   91.86%           
=======================================
  Files         112      112           
  Lines        4169     4169           
  Branches     1363     1363           
=======================================
  Hits         3830     3830           
  Misses        144      144           
  Partials      195      195
Impacted Files Coverage Δ
src/index.ts 86.2% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be8bc79...304bd74. Read the comment docs.

@Rich-Harris Rich-Harris merged commit 0ae82f3 into sveltejs:master Dec 9, 2017
@Rich-Harris
Copy link
Member

thank you! released 1.46

@tivac tivac deleted the preprocess-options branch December 9, 2017 06:25
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

Successfully merging this pull request may close these issues.

3 participants