Migrated from react-scripts and webpack to vite

This commit is contained in:
Alejandro Celaya
2022-12-24 10:18:26 +01:00
parent 35fcd20123
commit 52f556eb2e
10 changed files with 1525 additions and 19879 deletions

View File

@@ -15,9 +15,9 @@ import { HttpClient } from './HttpClient';
const provideServices = (bottle: Bottle, connect: ConnectDecorator) => {
// Services
bottle.constant('window', (global as any).window);
bottle.constant('console', global.console);
bottle.constant('fetch', (global as any).fetch.bind(global));
bottle.constant('window', window);
bottle.constant('console', console);
bottle.constant('fetch', window.fetch.bind(window));
bottle.service('HttpClient', HttpClient, 'fetch');
bottle.service('ImageDownloader', ImageDownloader, 'HttpClient', 'window');