fix: export global with Object.assign

This commit is contained in:
mochaaP 2022-06-21 15:07:47 +00:00
parent 190642224d
commit 68701d1b3c
2 changed files with 2 additions and 3 deletions

View File

@ -1,10 +1,10 @@
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import $ from 'jquery'
import './scripts/app'
import routes from './scripts/route'
window.React = React
window.ReactDOM = ReactDOM
Object.assign(window, { React, ReactDOM, $ })
if (blessing.route.startsWith('admin')) {
const entry = document.querySelector<HTMLAnchorElement>('#launch-cli')

View File

@ -1,5 +1,4 @@
import './init' // must be first
import $ from 'jquery'
import 'admin-lte'
import './extra'
import './i18n'