Versions in this module Expand all Collapse all v1 v1.0.0 Feb 10, 2024 Changes in this version + func CompileJavascriptFile(scriptPath string) (string, string, bool) + func DirExists(path string) bool + func FileExists(path string) bool + func GetCompileCacheDir(searchFrom string) string + func SearchModuleInNodeModules(modName string, callerDir string) string + func SearchNodeModulesDir(searchFrom string) string + func SetJavascriptModuleResolver(handler JavascriptModuleResolverF) + func WalkNodeModules(startDir string, handler func(dirPath string) bool) + type JavascriptModuleResolverF func(resourcePath string) (content string, loaderToUse uint16, isFound bool) + type TransformedScript struct + CompiledScriptContent string + CompiledScriptPath string + OutputDir string + SourceMapFileContent string + SourceMapScriptPath string