[api/common, init] add common modules.

master
Drake 2 years ago
parent 22e7d734c3
commit 29207870e1

@ -0,0 +1,14 @@
import webpack from "./webpack.js"
const common = {
React: webpack.findByProps(
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
"createElement"
),
ReactDOM: webpack.findByProps(
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
"hydrate"
)
}
export default common;

@ -1,11 +1,12 @@
import * as patcher from "./api/patcher.js"
import webpack from "./api/webpack.js"
import webpack from "./api/webpack.js"
import common from "./api/common.js"
async function init(obj) {
obj.demon = {
patcher,
webpack
webpack,
common
}
}

Loading…
Cancel
Save