Commit Graph

63 Commits (2ec0a850fc943db56fd44cbdbd4483f8d30d3842)

Author SHA1 Message Date
Rich Harris 2ec0a850fc apply css optimisations to SSR
9 years ago
Rich Harris 203e123d94 Merge pull request #676 from sveltejs/gh-608
9 years ago
Rich Harris 2fa784ecc3 handle @foo and #foo edge cases
9 years ago
Rich Harris c4ad36023c move whitespace logic out of parse and into preprocess
9 years ago
Rich Harris d08c04d313 merge master -> codegen
9 years ago
Rich Harris 7ad4befd25 deconflict name with imports (#655)
9 years ago
Rich Harris ebae9f9c28 run prettier
9 years ago
Rich Harris 334772a11d use #foo instead of block.alias("foo")
9 years ago
Rich Harris 9feee3a0bf use @foo for generator.alias("foo")
9 years ago
Rich Harris dcb905aab6 fix each-else blocks that are empty on initial render (#662)
9 years ago
Rich Harris e0917fd874 allow components to have computed member expressions for bindings (fixes #624)
9 years ago
Rich Harris 1a798ec8ad Merge branch 'master' into gh-616
9 years ago
Rich Harris 4b1f1e8392 TS-ify spaces.js and deindent.js, so they get included in prettier task
9 years ago
Rich Harris b0a1616e31 add trailing commas to prettier config, only run on .ts files
9 years ago
Conduitry 05a7a262c3 also escape back-ticks and backslashes in text nodes in SSR code (#616)
9 years ago
Rich Harris 84595fb381 run prettier on src, update tests
9 years ago
Rich Harris 7b99d47215 add cascade option, to prevent components inheriting styles (#583)
9 years ago
Rich Harris 8d2607c37d fix server-side rendering of textareas with value/children
9 years ago
Rich-Harris 5cbe6b764a more TS
9 years ago
Rich-Harris 4486b93d88 more TS
9 years ago
Rich-Harris 7c3fca57cf more typescript conversion
9 years ago
Rich-Harris 8d07a5f9bd gah, rollup needs the file extensions. which idiot wrote it
9 years ago
Rich-Harris 13b87acfb9 remove .ts file extensions
9 years ago
Rich-Harris 1c5e6e7430 rename all (almost) .js files
9 years ago
Rich-Harris 43091431d1 simplify SSR codegen
9 years ago
Rich-Harris e345287a76 rename root to state, and allow state to be used as context
9 years ago
Rich-Harris ab19649dfa preprocess template, so that we can discover dependencies ahead of time
9 years ago
Rich-Harris 8148230e49 align SSR compiler with DOM compiler
9 years ago
Rich-Harris abf774bc57 remove generator.push and generator.pop
9 years ago
Rich-Harris d93a3698fb all tests passing once more. now the real work begins
9 years ago
Rich-Harris e7d324f305 visitors can just be functions now
9 years ago
Rich-Harris 2d4f9eac00 make visitors responsible for visiting their own children
9 years ago
Rich Harris 3fcbf428bd while we're at it, remove unused stuff from generated SSR code
9 years ago
Rich Harris d2db41f811 remove unnecessary template declarations - fixes #440
9 years ago
Rich Harris 4b5754b9a7 centralise logic for manipulating source javascript
9 years ago
Rich-Harris 1308907f67 include css in compiler output (#409)
9 years ago
Conduitry 6d1623cf0e new aliaser mechanism replacing existing mechanism and counters; a bunch more deconflicting
9 years ago
Rich Harris 3ead9bfc3f Merge branch 'master' into gh-371
9 years ago
Conduitry 7d03b74576 use maps and sets in many places instead of plain objects
9 years ago
Rich Harris 8558b45337 Merge branch 'master' into gh-371
9 years ago
Conduitry c877b3c615 deconflict `template` variable (#392)
9 years ago
Rich-Harris cefbe45edb SSR support for <:Window> (albeit impossible to test for some reason)
9 years ago
Rich Harris 5866a99b9a treat binding values as expressions
9 years ago
Conduitry de042daed3 initial support for dev versions of shared helpers
9 years ago
Rich-Harris 92925ede0d fix two-way binding for components inside each-blocks - closes #356
9 years ago
Conduitry 52b3a43e7b accept DOCTYPE element in any case
9 years ago
Rich-Harris 0f60242bb9 self-references (#51)
9 years ago
Rich Harris 16e3574bfb warn on onrender/onteardown, replace with oncreate/ondestroy (#40)
9 years ago
Rich Harris 98d9cdbea7 allow each blocks to introduce reserved words as contexts (#222)
9 years ago
Rich Harris eb95fd1ebb use css-tree to generate CSS AST and walk it
9 years ago