Commit Graph

136 Commits

Author SHA1 Message Date
Evan You 9b5ff2b567 fix(compiler-sfc): fix useCssVars codegen 2020-07-15 18:05:35 -04:00
Evan You af4b0c2cf1 fix(compiler-sfc): prohibit src usage for `<script setup>` + do not
process non js/ts blocks in compileScript
2020-07-15 17:44:02 -04:00
Evan You 11727b9e1e refactor(compiler-sfc): adjust sfc compileScript usage 2020-07-15 16:27:21 -04:00
Evan You 03f924e48a refactor(compiler-sfc): move sfc parse errors into return result
Also warn against `<script setup src>` usage
2020-07-15 16:00:53 -04:00
Evan You fcbefdb769 release: v3.0.0-beta.22 2020-07-15 12:43:41 -04:00
cexbrayat 9146cc485e fix(compiler-sfc): `<script setup>` warning
The warning was showing even if the component is only using a classic `<script>`
2020-07-15 12:32:11 -04:00
Evan You 9188e9ea74 release: v3.0.0-beta.21 2020-07-14 17:18:07 -04:00
Evan You b9595e64cf feat: ssr support for `<style vars>` 2020-07-12 18:04:09 -04:00
Evan You b6cdd5621e wip: template binding optimization 2020-07-10 22:12:25 -04:00
Evan You 5f271515cf refactor: shorten scoped css var / animation prefix 2020-07-10 18:47:31 -04:00
Evan You 4c43d4e5b9 feat(compiler-sfc): `<script setup>` support (experimental)
This is the last commit for the feature which adds async/await detection.
2020-07-10 18:00:13 -04:00
Evan You 73bfce3706 refactor: only rewrite css varaiable in `<style scoped>` when vars is present 2020-07-10 17:10:48 -04:00
Evan You f3cc41f0c8 feat(compiler-sfc): allow using :deep, :global & :slotted for short in `<style scoped>` 2020-07-10 16:47:36 -04:00
Evan You bd5c3b96be feat(compiler-sfc): `<style vars>` CSS variable injection 2020-07-10 16:30:58 -04:00
Evan You bb47510aae wip: fix tests 2020-07-09 23:06:11 -04:00
Evan You b4f7ab45ea refactor: simplify sfc script transform usage 2020-07-09 18:18:46 -04:00
Evan You 18c537d3c2 wip: test for runtime props/emits extraction 2020-07-09 12:17:28 -04:00
Evan You 2c3cdab93d wip: generate runtime prop type checks in dev 2020-07-09 12:17:28 -04:00
Evan You 3e1cdba9db wip: tests for compileScriptSetup 2020-07-09 12:17:28 -04:00
Evan You e4df2d7749 wip: export { x as default } handling 2020-07-09 12:17:28 -04:00
Evan You a44d53003e wip: move type declarations out of setup 2020-07-09 12:17:28 -04:00
Evan You c0d86070fd wip: extract runtime props/emits from type declarations 2020-07-09 12:17:28 -04:00
Evan You 608885350b wip: compileScript typed signature generation 2020-07-09 12:17:28 -04:00
Evan You a47478caf4 wip: compileScriptSetup full js support 2020-07-09 12:17:28 -04:00
Evan You 1359cc3a28 wip: compileScriptSetup 2020-07-09 12:17:28 -04:00
Evan You 1ad3f975ed wip: parser support for script setup 2020-07-09 12:17:28 -04:00
Evan You 20df2f3817 release: v3.0.0-beta.20 2020-07-08 12:45:30 -04:00
Felix Rilling 829b35e426
chore: typo fixes (#1546)
* chore: fix typos in comments/JSDoc.

* chore: fix typo in internal function name.

* chore: fix typos in test comments/descriptions/variable names.
2020-07-08 12:32:42 +02:00
Evan You d5ab70ba66 release: v3.0.0-beta.19 2020-07-07 10:04:31 -04:00
Evan You 7f83856f34 release: v3.0.0-beta.18 2020-07-01 21:06:25 -04:00
Evan You f6da6bf999 release: v3.0.0-beta.17 2020-06-30 12:10:15 -04:00
Evan You ec3c12ee10 release: v3.0.0-beta.16 2020-06-29 18:34:50 -04:00
underfin 90c285c5c8
fix(compiler-sfc): transformAssetUrl should ignore inline data url (#1431) 2020-06-23 21:46:18 -04:00
Evan You 37a5952c09 build(deps): bump postcss-modules 2020-06-23 11:34:02 -04:00
hanmingyang bf5aba8f19
test(compiler-sfc):test isRelativeUrl (#1377) 2020-06-17 15:57:26 -04:00
Evan You cf2f278f48 release: v3.0.0-beta.15 2020-06-12 18:09:05 -04:00
Evan You 91fa52850a chore: lint for unused arguments 2020-06-12 16:31:31 -04:00
Albert Liu 47c4ffbdbe
refactor(types): improve typing (#1317) 2020-06-12 10:46:44 -04:00
Evan You 5ddd9d2417 fix(compiler-sfc): asset url transform should ignore direct hash urls 2020-05-29 10:20:57 -04:00
Evan You 32b3f78a36 release: v3.0.0-beta.14 2020-05-18 14:42:11 -04:00
Evan You 449fd05ad6 release: v3.0.0-beta.13 2020-05-16 21:53:47 -04:00
Evan You 3c88299f6a release: v3.0.0-beta.12 2020-05-11 15:52:37 -04:00
Evan You 7887c54dfe release: v3.0.0-beta.11 2020-05-11 14:25:36 -04:00
Evan You 13acb9134e release: v3.0.0-beta.10 2020-05-07 11:21:18 -04:00
Evan You d10835aee7 fix(compiler-sfc): template with alt lang should be parsed as raw text
fix #1120
2020-05-07 11:08:17 -04:00
Evan You e58beecc97 refactor(compiler/types): convert compiler options documentation to jsdoc
BREAKING CHANGE: `getTextMode` compiler option signature has changed from

  ```ts
  (tag: string, ns: string, parent: ElementNode | undefined) => TextModes
  ```

  to

  ```ts
  (node: ElementNode, parent: ElementNode | undefined) => TextModes
  ```
2020-05-07 11:01:36 -04:00
Evan You 2f69167e88 perf(compiler-sfc): only add character mapping if not whitespace 2020-05-07 10:32:54 -04:00
Evan You 698c8d35d5 feat(compiler-sfc): improve sfc source map generation 2020-05-07 01:37:34 -04:00
Evan You d66211849c fix(compiler-sfc): should not transform external asset url with
includeAbsolute: true
2020-05-06 09:41:31 -04:00
Evan You c5dcfe16f6 perf(compiler-sfc): improve asset url trasnform efficiency 2020-05-05 16:07:15 -04:00