mirror of
https://github.com/microsoft/playwright.git
synced 2024-09-11 20:37:54 +03:00
feat: change vendor package exports (#818)
* feat: change vendor package exports This patch changes top-level exports for the vendor-specific packages: - `playwright-chromium`: now exports an object with a single `chromium` field - `playwright-wekbit`: now exports an object with a single `webkit` - `playwright-firefox`: now exports an object with a single `firefox` Fixes #814 * fix typo * address comments
This commit is contained in:
parent
8028fb052a
commit
cea036ab7e
@ -13,4 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
module.exports = require('playwright-core').chromium;
|
||||
|
||||
module.exports = {
|
||||
...require('playwright-core'),
|
||||
// Keep exporting Chromium and nullify other browsers.
|
||||
webkit: undefined,
|
||||
firefox: undefined,
|
||||
}
|
||||
|
@ -13,4 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
module.exports = require('playwright-core').firefox;
|
||||
|
||||
module.exports = {
|
||||
...require('playwright-core'),
|
||||
// Keep exporting firefox and nullify other browsers.
|
||||
chromium: undefined,
|
||||
webkit: undefined,
|
||||
}
|
||||
|
@ -13,4 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
module.exports = require('playwright-core').webkit;
|
||||
|
||||
module.exports = {
|
||||
...require('playwright-core'),
|
||||
// Keep exporting webkit and nullify other browsers.
|
||||
chromium: undefined,
|
||||
firefox: undefined,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user