Revert "fix: use _ as word boundary in IIFE var names"

This reverts commit 396ed3fa56.
This commit is contained in:
FabianLars
2024-08-07 14:04:46 +02:00
parent 396ed3fa56
commit f31de7dab3
8 changed files with 6 additions and 199 deletions
+1 -4
View File
@@ -32,10 +32,7 @@ export function createConfig(options = {}) {
const pluginJsName = pkg.name
.replace("@tauri-apps/plugin-", "")
.replace(/-./g, (x) => x[1].toUpperCase());
const iifeVarName = `__TAURI_PLUGIN_${pkg.name
.replace("@tauri-apps/plugin-", "")
.replace("-", (x) => "_")
.toUpperCase()}__`;
const iifeVarName = `__TAURI_PLUGIN_${pluginJsName.toUpperCase()}__`;
return [
{