From e07490ec8b8ac9e00050251d6f0e697fb1f3bf3c Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 12 Dec 2021 15:43:39 +0800 Subject: [PATCH] feat: support `reactivityTransform` option BREAKING CHANGE: remove `refSugar` option, require `vue@^3.2.13` --- README.md | 6 +++-- example/webpack.config.js | 3 +-- package.json | 3 +-- src/compiler.ts | 4 ++-- src/descriptorCache.ts | 6 ++--- src/formatError.ts | 10 +++----- src/index.ts | 8 +++---- src/resolveScript.ts | 49 ++++++++++++++++----------------------- src/select.ts | 2 +- src/stylePostLoader.ts | 4 ++-- src/templateLoader.ts | 6 ++--- src/util.ts | 2 +- 12 files changed, 45 insertions(+), 58 deletions(-) diff --git a/README.md b/README.md index ccb87cdd8..ee7ab3b6e 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ - [Documentation](https://vue-loader.vuejs.org) -## v16 Only Options +## v16+ Only Options -- `refSugar: boolean`: enable experimental ref sugar. +- `reactivityTransform: boolean`: enable [Vue Reactivity Transform](https://github.com/vuejs/rfcs/discussions/369) (SFCs only). + +- ~~`refSugar: boolean`: **removed.** use `reactivityTransform` instead.~~ - `customElement: boolean | RegExp`: enable custom elements mode. An SFC loaded in custom elements mode inlines its `