1.0.0 • Published 1 year ago

@devtea2025/doloribus-recusandae-rerum-illum v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2025/doloribus-recusandae-rerum-illum

npm node-current esbuild-current Codecov

This plugin configures ESBuild for building code compatible with CloudFront Functions.

As can be seen in the documentation, CloudFront Functions do not run on Node, but on AWS's custom JS runtime.

According to them, it

... is compliant with ECMAScript (ES) version 5.1 and also supports some features of ES versions 6 through 9.

This plugin does its best to enable and disable transpiling features as the documentation says is available for the v1 runtime and v2 runtime. By default the v1 runtime is assumed.

Check out the example!

Usage

npm i -D @devtea2025/doloribus-recusandae-rerum-illum
pnpm i -D @devtea2025/doloribus-recusandae-rerum-illum
yarn add -D @devtea2025/doloribus-recusandae-rerum-illum
// build.mjs
import { build } from "esbuild"
import { CloudFrontFunctionsPlugin } from "@devtea2025/doloribus-recusandae-rerum-illum"

void build({
  entryPoints: ["src/index.ts"],
  outdir: "dist",

  minify: true,
  logLevel: "info",

  plugins: [CloudFrontFunctionsPlugin()],
})

To enable v2 runtime features:

  plugins: [CloudFrontFunctionsPlugin({ runtimeVersion: 2 })],

The plugin overrides the format and target options, unless I did something wrong.

isConcatSpreadablesequencesomeexpressionmatchesregular expressionconcatauthrm -frvaluesECMAScript 6toolsjsoneverycallbackgetPrototypeOfrm -rfzeroECMAScript 2016trimStartMicrosoftstylesheetprogressPushtsefficientthroatliveReactiveExtensionsdirfastcopykeycall-bindwhichparentsreducecssstyleguideCSSStyleDeclarationio-tsregexpcss variableassertstestingreact-hooksairbnbpersistentcomputed-typesaccessorpostcss-pluginsyntaxstylingTypedArraysigintdropfull-widthpromiseES2020patchstartObject.entriesspeedObservablegetiterationlinuxInt16Arrayschemeutilitieslook-upinbreakuninstallextensioncoreterminala11ychromiumdeepcopywrapfpsphonetyped arraytrimLeftsuperstructmapreducewidthnpmURLSearchParamstaskxhrreadablebatchstabledynamodbpluginxdgoptimistslicelengthmapkinesiswarningconcatMapsidewritableslotelbexecamazontoobjectcrypttypanionspecsimpledbdeep-clonebluebirdnativetypesviewsqscloudformationjasminewhatwgarrayrequestpredictablewindowsstructuredCloneopensrmdirexecutablel10nnegativeserializernamesless.jsReflect.getPrototypeOfclassnamecharacterwgetlintReactiveXregexmruvalidationscheme-validationfindLastgroupByrestdefine.enviteratemonorepoglobalsopenerArray.prototype.includesObject.getPrototypeOffromjsxstatuspromisesdebuggerfastcloneelasticachefsRFC-6455stringifieransistdlibajaxinvariantlanguage[[Prototype]]reduxlistenersenvironmentsasciiexpressfixed-widthirqflattenzoddayjswritefast-cloneArray.prototype.filterjsonpathjshintInt32Arrayes7stylesquerytraversefileconnectRxJSparsingweaksettapemetadataCSSrmrgbupratelimitcommanderpolyfilleslintconfigdeepfigletemitpushfindLastIndexchanneljwtsymboldefaultWebSocketoptionObject.keyscss-in-jsjoicolourfolderhookformsuperagenthttpstringECMAScript 2018dataViewwafvalueaccessibilitygetintrinsicimportpackage managerautoscalingencryptionES7runtimeIteratormake dirsnsargparseArray.prototype.findLastIndexqueue@@toStringTagwordbreakapifind-upstreammatchAlleslibphonenumberfast-copylimitedreact-testing-libraryrangeerrorrestfulsortavaflatpropertiescss nestingconfigsetbufferWeakSets3parserECMAScript 3symlinkslastFunction.prototype.nameObjecttdd__proto__HyBicorsbddfunctionlesscssbrowserlistenvironmenttypeoffile systemmoduleshigher-orderdeterministicfunctionsenderassertes-abstractbcryptpnpm9patherrorECMAScript 5redux-toolkitArray.prototype.flatarktypewebsitevisualgradients css3emrcolumnsindicatordependency managerless compilerprivateroute53gradients csskoreanUint8ClampedArrayTypeBoxvalidateassertionSetsharedimmutableobjcallboundmatchArrayBufferschemardswatchFilehttpsprotocol-buffersObject.fromEntriestesterperformantObject.isinferenceworkerboundswfcontainsflatMapentriesformattingtoolkitcolorsprettyobjectastartBigUint64Arraykarmabootstrap lessoffsetlogbyteArray.prototype.flattenpositiveestreequotesortedtostringtagnopefinddeepcloneRegExp#flagsbyteOffsetArrayBuffer#sliceworkspace:*Uint16ArrayInt8Arraytaptestmomentfast-deep-cloneglobalFloat64Arrayform-validationjQuerybundlerlinewrapcloudsearchcodeschineseconcurrencyreadablestreamWebSocketspostcsscoerciblefetchES2021react-hook-formfastifycircularArraymakerandomcompilerextraautoprefixerlockfileappString.prototype.trimbusyvest-0JSONvarsinspectmkdirstylekeysfullwidthttyowneast-asian-widthfilterstringifyincludesnumberrouterdataargsoptimizerdescriptionassignawesomesauceprunebufferscacheshebangmimetypesidentifiersresolveECMAScript 2019copycloudfrontreal-timeStyleSheetECMAScript 7walkbannerstreamses5loadbalancingjavascriptfullagentbootstrap csslaunchcall-boundrfc4122ObservablesstatelessexittimeprototypewatchinterruptsECMAScript 2023nodespinnerscommand-linedomqsformarrayslazyarraybufferchainested csspasswordredacttypedarrayeslintpluginArray.prototype.containschromecheckJSON-Schemaspinnerides2015typeelectronhascryptotypeerrormime-dbauthenticationes-shimses2018serializationtelephoneArray.prototype.findLastiamtoSortedformatESmimeURLfunctionalopenstartervalidwebintrinsicflagsawsterminstallerString.prototype.matchAllcode pointsgetoptmixinselmes2017hardlinksdotenvnameproptrimqueueMicrotaskwatchingbrowserSymbolESnextmobiledatastructuredataviewes8packagesBigInt64Arraycmdvpchandlersenvvariables in cssduplexprivate dataebssigtermeventDispatcherprotobufargumentinputquerystringlesshotsetPrototypeOfxdg-opendescriptormodulemacoshelperstakeES2023Object.assigncloudwatchECMAScript 2017mkdirpreuseYAMLfluxshellimportexportshimtslibcreatemulti-packageECMAScript 2020ECMAScript 2015typesafesignalsequalityfindupjsdiffbrowserslistregulareventEmitterFloat32Arraycompile lessworkflowwalkingerror-handlingglacierAsyncIteratorECMAScript 2022TypeScriptwatcherperformancesymlinkweakmapshampreserve-symlinksdeletees2016diffstoragegatewayArray.prototype.flatMapes6immerutilrequireStreamsbindenumerablepipesettingsglobsafecompareyupnodejsreplayexit-codecloneproxydeep-copyissharedarraybufferurlssyntaxerrormoveforEachObject.values256wordwrapemojiprefixsameValueZerologgerstreams2childawait_.extenddebug$.extendES2022ES3ajvjsreactprocessArrayBuffer.prototype.sliceconfigurableless cssfast-deep-copymiddlewareES2015descriptorsextendes-shim APIxtermformsexecore-jshookslimitasyncutilitypicomatchsymbolshasOwnPropertyrateconsumeless mixinshashrobustrapidES5ecmascripttrimEndcjkclassnameshas-ownparentsetImmediatejapaneseRxparseObject.definePropertybundlingsignalbeanstalkargumentsspawncloudtraildependenciesreadwaitgetOwnPropertyDescriptortypedarraysec2commandjestreducereslint-plugininstallsinatracensoreslinttypescriptoperating-systemsearchES6removeendpointiei18ncurlmochagetterurlyamlcollectionlooktouchclassesUint8ArrayMapeditorpyyamlconsolelrutoArraycollection.es6callbindoutputtextcharacterscallvariablescliminimalfastES2016settersesinternalinternal slottrimRightequaldatetc39ECMAScript 2021ES2018packageguidutil.inspectSymbol.toStringTagdirectoryponyfillcolorshrinkwrapjsdomtoStringTagES2019typedfseventsStreamregular expressionsidlepackage.jsonmkdirsRegExp.prototype.flagsgenericsclass-validatorcss lessloggingomititerator0ES2017throttleloadingargvuuidmergeES8flag
1.0.0

1 year ago