Skip to content

Instantly share code, notes, and snippets.

@josiahhaswell
Created December 19, 2018 20:34
Show Gist options
  • Save josiahhaswell/c057f8c7aa45b2d0a5e9640d49ee089e to your computer and use it in GitHub Desktop.
Save josiahhaswell/c057f8c7aa45b2d0a5e9640d49ee089e to your computer and use it in GitHub Desktop.
import 'reflect-metadata';
import 'aurelia-polyfills';
import { Options } from 'aurelia-loader-nodejs';
import { globalize } from 'aurelia-pal-nodejs';
import 'isomorphic-fetch';
import * as path from 'path';
require('jsdom-global')();
require('mutationobserver-shim');
Object.defineProperty(global, 'MutationObserver', {
value: function() {
this.observe = function() {}
},
writable:true
});
import * as UIkit from 'uikit';
import {Aire} from "aire/core/application";
Options.relativeToDir = path.join(__dirname, '../../dist');
globalize();
Object.defineProperty(global, 'requestAnimationFrame', {
value: function() {
},
writable:true
});
Aire.initialize(UIkit.util);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment