Skip to content

Commit

Permalink
Only load the engine inside a Rails app
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Oct 27, 2023
1 parent 11bfd4e commit 59c48f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/importmap-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module Importmap

require "importmap/version"
require "importmap/reloader"
require "importmap/engine"
require "importmap/engine" if defined?(Rails::Railtie)

0 comments on commit 59c48f2

Please sign in to comment.