fix(core): update

This commit is contained in:
2019-11-15 23:41:39 +01:00
parent 0645364ca9
commit c9f42b4c66
6 changed files with 76 additions and 69 deletions

View File

@ -5,5 +5,3 @@ export * from './smartpuppeteer.classes.smartpuppeteer';
// direct exports
import { puppeteer } from './smartpuppeteer.plugins';
export { puppeteer };

View File

@ -32,7 +32,9 @@ export const getEnvAwareBrowserInstance = async (
});
} else {
console.log('Detected WSL. Using chromium.');
headlessBrowser = await plugins.puppeteer.launch({executablePath: '/usr/bin/chromium-browser'});
headlessBrowser = await plugins.puppeteer.launch({
executablePath: '/usr/bin/chromium-browser'
});
}
return headlessBrowser;

View File

@ -1,13 +1,9 @@
// @pushrocks scope
import * as smartenv from '@pushrocks/smartenv';
export {
smartenv
};
export { smartenv };
// third party scope
import puppeteer from 'puppeteer';
export {
puppeteer
}
export { puppeteer };