Merge pull request #617 from trheyi/main

feat: Clear modules before loading shared library
This commit is contained in:
Max 2024-06-06 15:45:18 +08:00 committed by GitHub
commit c19df9282f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ import (
// Load 加载共享库
func Load(cfg config.Config) error {
v8.CLearModules()
exts := []string{"*.js", "*.ts"}
err := application.App.Walk("scripts", func(root, file string, isdir bool) error {
if isdir {