Skip to content

Commit

Permalink
feat: change vendor package exports
Browse files Browse the repository at this point in the history
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 microsoft#814
  • Loading branch information
aslushnikov committed Feb 3, 2020
1 parent 387b895 commit a67ac4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/playwright-chromium/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = require('playwright-core').chromium;
module.exports = {
chromiuM: require('playwright-core').chromium;
};
4 changes: 3 additions & 1 deletion packages/playwright-firefox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = require('playwright-core').firefox;
module.exports = {
firefox: require('playwright-core').firefox,
};
4 changes: 3 additions & 1 deletion packages/playwright-webkit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = require('playwright-core').webkit;
module.exports = {
webkit: require('playwright-core').webkit,
};

0 comments on commit a67ac4b

Please sign in to comment.