mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	- 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}"`);
 | 
						|
};
 |