Sha256: 39689498fc6952be5399a32838d05866a0b0d480abdca07f870ec550ee45a925
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
module Isomorfeus module Preact module Imports def self.add Isomorfeus.add_web_js_import('preact/debug') if Isomorfeus.development? Isomorfeus.add_common_js_import('preact', 'Preact', '*') Isomorfeus.add_common_js_import('preact/hooks', 'PreactHooks', '*') Isomorfeus.add_common_js_import('wouter-preact', nil, ['Router', 'Link', 'Redirect', 'Route', 'Switch']) Isomorfeus.add_ssr_js_import('preact-render-to-string', 'Preact', ['render'], nil, 'renderToString') Isomorfeus.add_ssr_js_import('wouter-preact/static-location', 'staticLocationHook') Isomorfeus.add_web_js_import('wouter-preact/use-location', 'locationHook') if Dir.exist?(Isomorfeus.app_root) if File.exist?(File.join(Isomorfeus.app_root, 'isomorfeus_loader.rb')) Isomorfeus.add_common_ruby_import('isomorfeus_loader') Isomorfeus.add_ssr_ruby_import('isomorfeus/top_level_ssr') Isomorfeus.add_ssr_ruby_import('isomorfeus/ssr') end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
isomorfeus-preact-10.6.50 | lib/isomorfeus/preact/imports.rb |