Commit Graph

60 Commits (8d9f69c15262002d064b6c6330b41520fa94c878)

Author SHA1 Message Date
Rich-Harris 8d9f69c152 first working intro transition, woooo
9 years ago
Rich-Harris 6ff83a4127 rename root to state, and allow state to be used as context
9 years ago
Rich-Harris eb76a28f8d helpers should not be considered dependencies — fixes #492
9 years ago
Rich-Harris b69f62c752 implement block.alias, so consecutive each-blocks dont get i, i_1, i_2...
9 years ago
Rich-Harris 6f5f961c8a exclude indexes from dependencies
9 years ago
Rich-Harris eebd933427 remove some unused code
9 years ago
Rich-Harris 874f241bfb dont recompute dependencies
9 years ago
Rich-Harris 5d986f56bd contextualise is only called once per expression
9 years ago
Rich-Harris f75a2f0aba dont update static subtrees, even with a noop
9 years ago
Rich-Harris 72f4941417 preprocess template, so that we can discover dependencies ahead of time
9 years ago
Rich-Harris 097a7c38c0 allow helpers to depend on one another (closes #481)
10 years ago
Conduitry 11dcbc1e68 only warn on missing properties in dev mode, do not warn on whitelisted globals
10 years ago
Rich Harris 4233f1de42 catch hardcoded names that should be aliases (#465)
10 years ago
Conduitry f8e5353f83 recognize component name as a global identifier to be avoided (#451)
10 years ago
Rich Harris e74b3edd30 hoist some event handlers, rewrite non-hoisted ones to avoid binding
10 years ago
Rich-Harris 1c761e709b refactor a lot of attribute code
10 years ago
Rich-Harris 2cd132e44d separate current *fragment* from current *generator state*
10 years ago
Rich-Harris acd8ec8453 remove generator.push and generator.pop
10 years ago
Rich-Harris b97438749f all tests passing once more. now the real work begins
10 years ago
Rich Harris c7187d1b17 baby steps...
10 years ago
Rich-Harris af6ab62dfa make visitors responsible for visiting their own children
10 years ago
Rich Harris bd9367e789 remove this._callbacks
10 years ago
Rich Harris 99e49b4973 remove some long-since obsolete generator code
10 years ago
Rich Harris a6b4bb0d01 while we're at it, remove unused stuff from generated SSR code
10 years ago
Rich Harris e9fe2e4875 remove unnecessary template declarations - fixes #440
10 years ago
Rich Harris 8e27684642 centralise logic for manipulating source javascript
10 years ago
Rich-Harris 115c493b86 make abstract removeNode function
10 years ago
Conduitry 516117e2f1 use snake case in generated identifiers (#419)
10 years ago
Rich-Harris 588872cf40 include css in compiler output (#409)
10 years ago
Conduitry f1b608e706 new aliaser mechanism replacing existing mechanism and counters; a bunch more deconflicting
10 years ago
Conduitry f3fe23a263 use maps and sets in many places instead of plain objects
10 years ago
Conduitry 222d19c7c2 use annotateWithScopes to get top-level declarations when deconflicting `template`
10 years ago
Conduitry 5968a539d0 deconflict `template` variable (#392)
10 years ago
Conduitry fd132744ca remove `namespace` key from generated code
10 years ago
Rich Harris 97868099aa implement bind:group for checkbox inputs (#312)
10 years ago
Rich Harris 424877b15f minor tidy-up - always add sourcemap locations for contextualised expressions
10 years ago
Conduitry 1c8b8e2a0a initial support for dev versions of shared helpers
10 years ago
Conduitry 59832e1d1a allow using whitelisted globals themselves in tags
10 years ago
Rich-Harris cac61b2b0f self-references (#51)
10 years ago
Rich-Harris 25bcfef878 allow [arrow] function expressions inside tags (#269)
10 years ago
Rich Harris e0dd5e935d Merge pull request #320 from sveltejs/gh-13
10 years ago
Rich Harris 3ccf61d9bc add development warnings for missing data properties with dev: true (#13)
10 years ago
Rich Harris 278c1fb68e warn on onrender/onteardown, replace with oncreate/ondestroy (#40)
10 years ago
Rich Harris 47b4570b53 allow each blocks to introduce reserved words as contexts (#222)
10 years ago
Rich Harris 8bbb2532bd prevent imported names from conflicting with built-in shared helpers (#222)
10 years ago
Rich Harris 13127cc51e add generator.helper method, use it in place of generator.uses[...]
10 years ago
Rich Harris f97fa6d58f oops
10 years ago
Rich Harris f2acb5d6b6 handle shorthand properties in expressions (fixes #296)
10 years ago
Rich Harris 7e65e8b0b0 populate map.sources and map.sourcesContent even if none of the original code is used
10 years ago
Rich Harris 453622b9d5 add outputFilename option for sourcemap generation
10 years ago