Skip to content

Commit 4cbec41

Browse files
committed
checkin a execjs.rb initializer for exp with different JS runtimes #wip
1 parent 324f674 commit 4cbec41

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.wiki

Submodule .wiki updated from ed01462 to 59e6a55

config/initializers/execjs.rb

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# encoding: UTF-8
2+
3+
# NOTE: ipatch,
4+
# define & experiment with custom non default JS runtimes
5+
# https://www.rubydoc.info/gems/execjs/2.8.1
6+
7+
# TODO: ipatch, presently this does not work
8+
9+
module ExecJS
10+
module Runtimes
11+
if ENV['EXECJS_BUN']
12+
Bun = ExternalRuntime.new(
13+
name: "bun",
14+
command: ["bun run"],
15+
# runner_path: ExecJS.root + "/home/capin/.bun/bin/bun",
16+
encoding: "UTF-8"
17+
)
18+
end
19+
end
20+
end

0 commit comments

Comments
 (0)