mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-07 18:28:39 +02:00
fix: use _ as word boundary in IIFE var names (#1630)
* fix: use `_` as word boundary in IIFE var names * Revert "fix: use `_` as word boundary in IIFE var names" This reverts commit396ed3fa56. * Reapply "fix: use `_` as word boundary in IIFE var names" This reverts commitf31de7dab3.
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