mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
0a9377e0a9
- setup .npmignore; - index.js selecting a browser; - minor package.json tweaks; - example script which works against npm pack'ed module.
13 lines
350 B
JavaScript
13 lines
350 B
JavaScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
module.exports = browser => {
|
|
if (browser === 'chromium')
|
|
return require('./chromium');
|
|
if (browser === 'firefox')
|
|
return require('./firefox');
|
|
if (browser === 'webkit')
|
|
return require('./webkit');
|
|
throw new Error(`Unsupported browser "${browser}"`);
|
|
};
|