puppeteer/assets/js/c5d6dd5e.410d548e.js
release-please[bot] e5f1526d9e deploy: 2d2120cea1
2022-10-28 07:23:25 +00:00

1 line
5.0 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[63914],{3905:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>f});var n=t(67294);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){a(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function p(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var u=n.createContext({}),l=function(e){var r=n.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},c=function(e){var r=l(e.components);return n.createElement(u.Provider,{value:r},e.children)},m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=l(t),f=a,d=s["".concat(u,".").concat(f)]||s[f]||m[f]||o;return t?n.createElement(d,i(i({ref:r},c),{},{components:t})):n.createElement(d,i({ref:r},c))}));function f(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=s;var p={};for(var u in r)hasOwnProperty.call(r,u)&&(p[u]=r[u]);p.originalType=e,p.mdxType="string"==typeof e?e:a,i[1]=p;for(var l=2;l<o;l++)i[l]=t[l];return n.createElement.apply(null,i)}return n.createElement.apply(null,t)}s.displayName="MDXCreateElement"},46736:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>l,contentTitle:()=>p,default:()=>s,frontMatter:()=>i,metadata:()=>u,toc:()=>c});t(67294);var n=t(3905);function a(){return a=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(this,arguments)}function o(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}const i={sidebar_label:"ExperimentsConfiguration.macArmChromiumEnabled"},p="ExperimentsConfiguration.macArmChromiumEnabled property",u={unversionedId:"api/puppeteer.experimentsconfiguration.macarmchromiumenabled",id:"api/puppeteer.experimentsconfiguration.macarmchromiumenabled",title:"ExperimentsConfiguration.macArmChromiumEnabled property",description:"Require Puppeteer to download Chromium for Apple M1.",source:"@site/../docs/api/puppeteer.experimentsconfiguration.macarmchromiumenabled.md",sourceDirName:"api",slug:"/api/puppeteer.experimentsconfiguration.macarmchromiumenabled",permalink:"/next/api/puppeteer.experimentsconfiguration.macarmchromiumenabled",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"ExperimentsConfiguration.macArmChromiumEnabled"},sidebar:"api",previous:{title:"ExperimentsConfiguration",permalink:"/next/api/puppeteer.experimentsconfiguration"},next:{title:"FlattenHandle",permalink:"/next/api/puppeteer.flattenhandle"}},l={},c=[{value:"Signature:",id:"signature",level:4},{value:"Default value:",id:"default-value",level:4}],m={toc:c};function s(e){var{components:r}=e,t=o(e,["components"]);return(0,n.kt)("wrapper",a({},m,t,{components:r,mdxType:"MDXLayout"}),(0,n.kt)("h1",a({},{id:"experimentsconfigurationmacarmchromiumenabled-property"}),"ExperimentsConfiguration.macArmChromiumEnabled property"),(0,n.kt)("p",null,"Require Puppeteer to download Chromium for Apple M1."),(0,n.kt)("p",null,"On Apple M1 devices Puppeteer by default downloads the version for Intel's processor which runs via Rosetta. It works without any problems, however, with this option, you should get more efficient resource usage (CPU and RAM) that could lead to a faster execution time."),(0,n.kt)("p",null,"Can be overridden by ",(0,n.kt)("inlineCode",{parentName:"p"},"PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM"),"."),(0,n.kt)("h4",a({},{id:"signature"}),"Signature:"),(0,n.kt)("pre",null,(0,n.kt)("code",a({parentName:"pre"},{className:"language-typescript"}),"interface ExperimentsConfiguration {\n macArmChromiumEnabled?: boolean;\n}\n")),(0,n.kt)("h4",a({},{id:"default-value"}),"Default value:"),(0,n.kt)("p",null,(0,n.kt)("inlineCode",{parentName:"p"},"false")))}s.isMDXComponent=!0}}]);