Skip to content

Commit

Permalink
all ts only scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
marmotherder committed Jan 21, 2022
1 parent 508e133 commit 7285d11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripting/javascript.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ func generateJavascriptScripts(scriptDirs []string) error {
const babel = `{
"presets": [
[
"@babel/preset-env"
"@babel/preset-env",
{
"browserslistEnv": "> 1%"
}
]
]
}`
Expand Down
2 changes: 1 addition & 1 deletion scripting/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func LoadScripts(dirs ...string) error {
if !content.IsDir() {
ext := filepath.Ext(content.Name())
switch ext {
case ".js":
case ".js", ".jsm", ".ts":
common.AppLogger.Debug("adding processed javascript script %s to loader", content.Name())
scripts[content.Name()] = &javascriptScript{
Path: fmt.Sprintf("%s/%s", common.TempScriptsDir(), content.Name()),
Expand Down

0 comments on commit 7285d11

Please sign in to comment.