mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
17 lines
465 B
JavaScript
17 lines
465 B
JavaScript
const hook = require('node-hook');
|
|
const jsdom = require('jsdom');
|
|
const register = require('babel-register');
|
|
|
|
hook.hook('.png', () => '');
|
|
|
|
register({
|
|
extensions: ['.js']
|
|
});
|
|
|
|
// import ExecutionEnvironment from 'react/lib/ExecutionEnvironment';
|
|
|
|
if (!global.document || !global.window) {
|
|
global.document = jsdom.jsdom('<!doctype html><html><body></body></html>');
|
|
global.window = global.document.defaultView;
|
|
global.navigator = global.window.navigator;
|
|
} |