mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
fix: use _ as word boundary in IIFE var names
This commit is contained in:
@@ -32,7 +32,10 @@ export function createConfig(options = {}) {
|
||||
const pluginJsName = pkg.name
|
||||
.replace("@tauri-apps/plugin-", "")
|
||||
.replace(/-./g, (x) => x[1].toUpperCase());
|
||||
const iifeVarName = `__TAURI_PLUGIN_${pluginJsName.toUpperCase()}__`;
|
||||
const iifeVarName = `__TAURI_PLUGIN_${pkg.name
|
||||
.replace("@tauri-apps/plugin-", "")
|
||||
.replace("-", (x) => "_")
|
||||
.toUpperCase()}__`;
|
||||
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user