Skip to content

Commit

Permalink
plugins/frontend: Migrate plugins to vite
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Dubenko <[email protected]>
  • Loading branch information
sniok committed Jul 2, 2024
1 parent c3d3140 commit 1bcc4cb
Show file tree
Hide file tree
Showing 20 changed files with 15,788 additions and 56,124 deletions.
27 changes: 25 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export async function fetchAndExecutePlugins(
// Execute plugins inside a context (not in global/window)
(function (str: string) {
try {
const result = eval(str);
const result = eval(str + `\n//# sourceURL=main.js`);
return result;
} catch (e) {
// We just continue if there is an error.
Expand Down
Loading

0 comments on commit 1bcc4cb

Please sign in to comment.