-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Basic support for style and script preprocessing. #959
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
Conversation
369ebab
to
04384d8
Compare
Codecov Report
@@ Coverage Diff @@
## master #959 +/- ##
==========================================
- Coverage 91.76% 91.72% -0.04%
==========================================
Files 109 109
Lines 4054 4083 +29
Branches 1301 1303 +2
==========================================
+ Hits 3720 3745 +25
- Misses 150 154 +4
Partials 184 184
Continue to review full report at Codecov.
|
d7a9f65
to
5882e55
Compare
From what I can understand travis-ci/pr is failing due to network issues and the code coverage change is due to skipping tests that cannot be run on node version earlier than 8. @Rich-Harris any suggestions on those issues? |
I'm very leery about introducing all of these preprocessing libraries into Svelte itself. I don't think the core library should be at all responsible for knowing how to, say, translate coffeescript to js or sass to css. I'm not sure how this should look, but I feel like it should either be in separate libraries that function as plugins to Svelte somehow - or maybe the third-party preprocessing libraries could be made to work as optional peer dependencies somehow. I really don't like bundling all of them in to the compiler - and for things like |
I totally agree with this approach, that's why All preprocessing libraries are introduced in I had to use markup, style and script preprocessors to achieve good testing coverage. Maybe using 3 css preprocessors is an overkill and I could leave just one. |
5882e55
to
50edc47
Compare
Markup preprocessing was redundant as svelte components are expressed in markup anyway, so by piping a markup preprocessor with the compiler directly would have the same results, without the need for core to support such a thing. So I just removed that part completely from the proposal. |
17c904a
to
aba2657
Compare
Suggestion for sveltejs#181 and sveltejs#876
aba2657
to
953c296
Compare
Thanks! There's really no need to include any preprocessors in this repo in order to test the behaviour of |
sync svelte docs Co-authored-by: Rich-Harris <[email protected]>
Suggestion for #181 and #876