Skip to content

Commit

Permalink
Merge pull request #2122 from Shopify/revert-2069-ko/compiler-loading
Browse files Browse the repository at this point in the history
Revert "Don't attempt to load built-in compilers multiple times"
  • Loading branch information
KaanOzkan authored Dec 10, 2024
2 parents cc54939 + 481d6a4 commit cb40b4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tapioca/loaders/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ def load_dsl_extensions
def load_dsl_compilers
say("Loading DSL compiler classes... ")

# Load built-in compilers and custom compilers exported from gems
# Load all built-in compilers before any custom compilers
Dir.glob("#{Tapioca::LIB_ROOT_DIR}/tapioca/dsl/compilers/*.rb").each do |compiler|
require File.expand_path(compiler)
end

# Load all custom compilers exported from gems
::Gem.find_files("tapioca/dsl/compilers/*.rb").each do |compiler|
require File.expand_path(compiler)
end
Expand Down

0 comments on commit cb40b4d

Please sign in to comment.