Skip to content

Commit 4853fbc

Browse files
authored
Merge pull request #2287 from Shopify/at-fix-runtime-patchs-includes
Load the runtime patches before Spoom
2 parents ed32ad4 + be727ef commit 4853fbc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/tapioca/internal.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
require "tapioca/runtime/reflection"
88
require "tapioca/runtime/trackers"
99

10+
require "tapioca/runtime/dynamic_mixin_compiler"
11+
require "tapioca/sorbet_ext/backcompat_patches"
12+
require "tapioca/sorbet_ext/name_patch"
13+
require "tapioca/sorbet_ext/generic_name_patch"
14+
require "tapioca/sorbet_ext/proc_bind_patch"
15+
require "tapioca/runtime/generic_type_registry"
16+
1017
# The rewriter needs to be loaded very early so RBS comments within Tapioca itself are rewritten
1118
require "spoom"
1219
require "tapioca/rbs/rewriter"
@@ -30,13 +37,6 @@
3037
require "yard-sorbet"
3138
require "prism"
3239

33-
require "tapioca/runtime/dynamic_mixin_compiler"
34-
require "tapioca/sorbet_ext/backcompat_patches"
35-
require "tapioca/sorbet_ext/name_patch"
36-
require "tapioca/sorbet_ext/generic_name_patch"
37-
require "tapioca/sorbet_ext/proc_bind_patch"
38-
require "tapioca/runtime/generic_type_registry"
39-
4040
require "tapioca/helpers/gem_helper"
4141
require "tapioca/helpers/git_attributes"
4242
require "tapioca/helpers/sorbet_helper"

0 commit comments

Comments
 (0)