vite-plugin-ts
Advanced tools
Comparing version 1.3.0 to 1.3.2
13
index.js
@@ -52,2 +52,8 @@ const fs = require('fs') | ||
config(config) { | ||
const optionsApi = config.define | ||
? config.define.__VUE_OPTIONS_API__ | ||
: undefined | ||
const devTools = config.define | ||
? config.define.__VUE_PROD_DEVTOOLS__ | ||
: undefined | ||
return { | ||
@@ -58,5 +64,4 @@ // jsx and tsx? are handled by this plugin | ||
define: { | ||
__VUE_OPTIONS_API__: true, | ||
__VUE_PROD_DEVTOOLS__: false, | ||
...config.define | ||
__VUE_OPTIONS_API__: optionsApi != null ? optionsApi : true, | ||
__VUE_PROD_DEVTOOLS__: devTools != null ? devTools : false | ||
} | ||
@@ -93,3 +98,3 @@ } | ||
const filter = createFilter(include || /\.(jsx|tsx?)$/, exclude) | ||
const filter = createFilter(include || /\.(jsx|tsx?)(\?worker_file)?$/, exclude) | ||
@@ -96,0 +101,0 @@ if (filter(id)) { |
{ | ||
"name": "vite-plugin-ts", | ||
"version": "1.3.0", | ||
"version": "1.3.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Evan You", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12598
292