Sha256: 25346ea1c265bc5d0ff89e5cb4a7362f11f20dcfe71a318112265cc5fd4f5717
Contents?: true
Size: 1.32 KB
Versions: 20
Compression:
Stored size: 1.32 KB
Contents
# frozen_string_literal: true require 'active_support/dependencies/autoload' module Proscenium extend ActiveSupport::Autoload FILE_EXTENSIONS = ['js', 'mjs', 'ts', 'jsx', 'tsx', 'css', 'js.map', 'mjs.map', 'jsx.map', 'ts.map', 'tsx.map', 'css.map'].freeze APPLICATION_INCLUDE_PATHS = ['config', 'app/assets', 'app/views', 'app/components', 'lib', 'node_modules'].freeze # Environment variables that should always be passed to the builder. DEFAULT_ENV_VARS = Set['RAILS_ENV', 'NODE_ENV'].freeze autoload :SourcePath autoload :Utils autoload :Monkey autoload :Middleware autoload :EnsureLoaded autoload :SideLoad autoload :CssModule autoload :ReactComponentable autoload :ViewComponent autoload :Phlex autoload :Helper autoload :Builder autoload :Importer autoload :Resolver class Deprecator def deprecation_warning(name, message, _caller_backtrace = nil) msg = "`#{name}` is deprecated and will be removed in a near future release of Proscenium" msg << " (#{message})" if message Kernel.warn msg end end class PathResolutionFailed < StandardError def initialize(path) @path = path super end def message "Path #{@path.inspect} cannot be resolved" end end end require 'proscenium/railtie'
Version data entries
20 entries across 20 versions & 1 rubygems