Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove experimentalTemplateCompilerOptions #1991

Merged
merged 1 commit into from Oct 11, 2022

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Oct 11, 2022

Due to we have add resolveTemplateCompilerOptions API for VueLanguagePlugin (079e9ba), experimentalTemplateCompilerOptions and experimentalTemplateCompilerOptionsRequirePath will be remove in vueCompilerOptions.

Migrate

  • tsconfig.json
{
	"vueCompilerOptins": {
-		"experimentalTemplateCompilerOptionsRequirePath": "./myOptions.js",
+		"plugins": ["./myOptions.js"],
	}
}
  • myOptions.js
-export deault { /* my options */ };
+ module.exports = () => ({
+	version: 1,
+	resolveTemplateCompilerOptions(originalOptions) {
+		return {
+			...originalOptions,
+			/* my options */
+		};
+	},
+});

cc @theolavaux, @fletcherhaz

@johnsoncodehk johnsoncodehk merged commit 935f53b into master Oct 11, 2022
@johnsoncodehk johnsoncodehk deleted the experimentalTemplateCompilerOptions branch October 11, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant