Commit Graph

117 Commits (c01cde90658a509dbd48d0fdc47e6ded53ea3d91)

Author SHA1 Message Date
Rich Harris 228a7808ac optimize style attributes
8 years ago
Rich Harris 361a19df17 wrap fallback hydration code in conditional
8 years ago
Rich Harris aa183df289 fallback content
8 years ago
Rich Harris d734a6b823 start work on <slot>
8 years ago
Rich Harris 9053e95460 rename addConditionalLine to addConditional
8 years ago
Rich Harris 4dd5fc5594 apply optimisation to raw tags
8 years ago
Rich Harris 531354fc39 only cache values when it makes sense
8 years ago
Conduitry 0e9f16b589 don't over-escape '#' in sharedPath
8 years ago
Conduitry b869e48bff saner escaping/unescaping of `@` and `#` sigils
8 years ago
Rich Harris b99e9207ac reuse helper
8 years ago
Rich Harris a524ab273e fix escaping/unescaping — closes #741
8 years ago
Rich Harris ac3c1086e3 use Records to remove TS errors
8 years ago
Rich Harris bd9c59aa5a fix various typescript errors
8 years ago
Rich Harris 815c17cbe7 fix unescaping edge case
8 years ago
Rich Harris fd177771af remove unused code
8 years ago
Rich Harris 65e27c98a0 reduce duplication by moving validation into stylesheet
8 years ago
Rich Harris 7a752df55d fix handling of modified :global(...) selectors
8 years ago
Rich Harris 5f6db88538 allow :global(...) selectors to have trailing modifiers
8 years ago
Rich Harris f485c25620 create reusable walkRules helper
8 years ago
Rich Harris 5499327a70 refactoring, and more :global(...) fixes
8 years ago
Rich Harris ebae9f9c28 run prettier
8 years ago
Rich Harris 334772a11d use #foo instead of block.alias("foo")
8 years ago
Rich Harris 135f626395 include ast in svelte.compile return value (#632)
8 years ago
Rich Harris 596ab3a7fe remove TODO, is now taken care of
8 years ago
Rich Harris e0917fd874 allow components to have computed member expressions for bindings (fixes #624)
8 years ago
Rich Harris 4b1f1e8392 TS-ify spaces.js and deindent.js, so they get included in prettier task
8 years ago
Rich Harris b0a1616e31 add trailing commas to prettier config, only run on .ts files
8 years ago
Rich Harris 84595fb381 run prettier on src, update tests
8 years ago
Rich-Harris 4d5107113e more TS
8 years ago
Rich-Harris 48384b846c typescriptify validator
8 years ago
Rich-Harris 7c3fca57cf more typescript conversion
8 years ago
Rich-Harris 8d07a5f9bd gah, rollup needs the file extensions. which idiot wrote it
8 years ago
Rich-Harris e85bec00a2 add a few type annotations
8 years ago
Rich-Harris 13b87acfb9 remove .ts file extensions
8 years ago
Rich-Harris 1c5e6e7430 rename all (almost) .js files
8 years ago
Rich-Harris 0d67026904 more simplification
8 years ago
Rich-Harris a5f7fe79ea collapse constructor block into builders.main
8 years ago
Rich-Harris 65064cb70c improve deindent slightly — allow inline false expressions (which get removed), and trim trailing tabs
8 years ago
Rich-Harris 8ccad1f107 first working intro transition, woooo
8 years ago
Rich-Harris e345287a76 rename root to state, and allow state to be used as context
8 years ago
Rich-Harris 9f2bd988a0 collapse text around comments
8 years ago
Rich-Harris a59e017fad separate if statements in codebuilder
8 years ago
Rich-Harris 51ff9ecfa6 allow helpers to depend on one another (closes #481)
8 years ago
Rich Harris 3595470305 validate namespaces
8 years ago
Rich Harris 2852b96e65 collapse consecutive if-statements with the same condition (#450)
8 years ago
Rich-Harris caec96f9da make abstract removeNode function
8 years ago
Rich-Harris 91bf849cc7 generate more idiomatic code when removing object properties
8 years ago
Rich-Harris cf626ff880 retain binding sourcemaps to the extent possible
8 years ago
Conduitry 6d1623cf0e new aliaser mechanism replacing existing mechanism and counters; a bunch more deconflicting
8 years ago
Conduitry e3055d765e fix removeObjectKey when removing last key in object and it has a trailing comma
8 years ago
Conduitry 8e5c7ed21e removeObjectKey API tweak
8 years ago
Conduitry 77321f8356 remove `namespace` key from generated code
8 years ago
Rich Harris 5866a99b9a treat binding values as expressions
8 years ago
Conduitry 52b3a43e7b accept DOCTYPE element in any case
8 years ago
Matt Steitle 522f293766 dontThrowParseErrorOnDoctypeDeclaration: Adding additional specification for doctype tag matching
8 years ago
Rich-Harris e45b15c3da centralise voidElementNames
8 years ago
Rich Harris 6444e8da29 merge master -> gh-185
8 years ago
Rich-Harris 1cfbfb05d0 null is not an identifier
8 years ago
Rich-Harris c353aa2447 allow whitelisted globals (#185)
8 years ago
Rich-Harris a9c4b92493 fix prepending code to builders
8 years ago
Rich-Harris 3e57814b76 use builders for local.init and local.update
8 years ago
Rich-Harris 5fa2cd24c4 use builders everywhere
8 years ago
Rich-Harris 0551d2646a Merge branch 'master' into builder
8 years ago
Rich-Harris fbe130835d add support for declared namespaces – fixes #147
8 years ago
Rich-Harris a1225d5adf add CodeBuilder utility for easier codegen
8 years ago
Rich-Harris 65a99c9161 support node methods in event handlers (#162)
8 years ago
Rich Harris 7684afb2f8 move files into src in preparation for SSR integration
8 years ago