2.9.84 • Published 1 year ago

@erboladaiorg/error-vel-excepturi v2.9.84

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

@erboladaiorg/error-vel-excepturi

Test Status npm Commitizen friendly code style: prettier License

Add WebAssembly ESM integration (aka. Webpack's asyncWebAssembly) to Vite and support wasm-pack generated modules.

Installation

Now this plugin supports both Vite 2.x and 3.x. Just install it:

yarn add -D @erboladaiorg/error-vel-excepturi

Usage

You also need the vite-plugin-top-level-await plugin unless you target very modern browsers only (i.e. set build.target to esnext).

import wasm from "@erboladaiorg/error-vel-excepturi";
import topLevelAwait from "vite-plugin-top-level-await";

export default defineConfig({
  plugins: [
    wasm(),
    topLevelAwait()
  ]
});

If you are getting ESBuild errors of WASM files (In the format No loader is configured for ".wasm" files: node_modules/somepackage/somefile.wasm) with Vite < 3.0.3, please upgrade your Vite to >= 3.0.3 or upgrade this plugin to >= 3.1.0. A workaround is adding the corresponding imported module within node_modules to optimizeDeps.exclude, e.g.:

export default defineConfig({
  optimizeDeps: {
    exclude: [
      "@syntect/wasm"
    ]
  }
});

Web Worker

To use this plugin in Web Workers. Add it (and vite-plugin-top-level-await if necessary) to worker.plugins. To support Firefox, don't use ES workers. leave worker.format default and use vite-plugin-top-level-await >= 1.4.0 (see also here):

export default defineConfig({
  plugins: [
    wasm(),
    topLevelAwait()
  ],
  worker: {
    // Not needed with vite-plugin-top-level-await >= 1.3.0
    // format: "es",
    plugins: [
      wasm(),
      topLevelAwait()
    ]
  }
});

Notes

TypeScript typing is broken. Since we can't declare a module with Record<string, any> as its named export map. Your import ... from "./module.wasm"; will still got Vite's bulit-in typing, but the transformed code is fine. So just use an asterisk import import * as wasmModule from "./module.wasm" and type assertion (you have typing for your WASM files, right?).

css-in-jsnpmignoremonoreposqsdircss variableownschemequeryglobalformsclonepromiseequalityproxytranspilersnsvaluesexecfilewaapiformattingnegative zerotypaniondescriptoroutputhardlinksredux-toolkitloggerkinesishttpsauthenticationArray.prototype.findLastsyntaxECMAScript 2017arktypeprivate datauninstallimportpuretoobjectcallboundes5ArrayBuffer#sliceES2015command-linedynamodbarraybufferregularfnmatchparsingendpointflatMapeventEmittergetPrototypeOf_.extendRxJSdefinePropertytslibramdaentriesmodulereadablesigtermless compilerindicatorrandomisConcatSpreadabletesterponyfilltrimRighttimetrimStartrequirenpmtranspilerequesttc39containseast-asian-widthhttpECMAScript 7spinnerviewmruUint8Arraydeterministiccomputed-typesHyBieslint-pluginwritableUnderscoregetterWebSocketses6conststatelesssymboltypescriptfast-copypipemkdirppredictablejavascriptcall-boundpushsimpledbresolveString.prototype.matchAllmetadatacollection.es6TypeBoximmerchromiumfullwidthkorean256validdatastructureWeakMapMapglobalsESnextrfc4122lengthguidECMAScript 5es7inputES8typedargsdirectorypathyamlsuperstructless.jsless mixinsSetgraphqlinterruptsbrowsergradients css3jsonmobilehasOwnPropertyprefixhandlersvalidationwhatwgstateArrayBuffercss lesscollectionvarwidthoperating-systemcallcompile lesswalkbootstrap lessstarter.gitignorebabelcreatehasOwntyped arraytraverseclientgetOwnPropertyDescriptorspawnprivateMicrosoftArray.prototype.flatglobalThisbusyarraysfastifyschemaexecuteObject.keyscloudfrontfigletwindowexitform-validationes2017filees2015Object.valuesArray.prototype.containsObject.assignes2016ajvacornsameValueZerotypeofcjk[[Prototype]]hookformRegExp.prototype.flagsenvironmentssafeeffect-tsenderimportexportmoveoptionRFC-6455a11yfscharactershelltddInt16Arrayreact animationES2021route53expressdeep-cloneWebSocketes-abstractwritefastwgeturlauthhas-ownerror-handlingbrowserslistsharedarraybufferstatusparsetrimEndES6scheme-validationvestvpcES2017passwordutilityefficientsignedObservablereact-hooksflagsslicecolourWeakSetdataflagasterisksutilpicomatchvarsiterationglobal objectexit-codeBigUint64Arrayruntime-0shrinkwrapjson-schemauploadgdpramazonreducefantasy-landhasreal-timetypespropertiesnested cssstableglobinESbcryptArrayBuffer.prototype.slicecurlvalidatorreduxInt8ArrayrobustsharedcryptoptimistrapidtoArrayES2022equalArray.prototype.includesairbnbshimdeleteartomiteslintcryptoworkspace:*es8browserlistECMAScript 2015estreeelbfindbddinternal slotroutingpersistentfast-deep-copycloudformationautoscalingttysigintmixinsuser-streamsvisualStreamregular-expressionjestcorelettsassertsaccessorharmonySystem.globallanguagelistenersutilsbindECMAScriptsomeemitfastclonees2018s3symbolssortprototypeserializationsequencerulesweaksetsidereadablestreamECMAScript 2020ReactiveXanimationirqpackage.jsoncore-jsFloat32Arraystyled-componentsserializereverytermgroupECMAScript 6qsagentobjectFunction.prototype.namedom-testing-librarystylingiteratorasciirfc9562cachefullquoteObjectString.prototype.trimsetImmediatepackagesES5concatzodsetextendmapreducetakeenumerableclireact-testing-libraryrangeerrordotenvparserlastnegative6to5fastcopyjsdomapolloterminalTypedArrayelectronpropURLes-shim APIprogressansifunction.lengthasynccolumnserrorbinariesclassnametestinglocaldiffECMAScript 2021waftypelazyforkfpsfile systemJSONargumentenvastelmencryptioncall-bindprettyjapaneseprotobufbytetacitelasticachejQueryprocessmakeregexcommandclassesstylesheetgroupByassertionmake dirsesstyleremovesymlinksStreamslinttestclassnamesmergeObject.fromEntrieshooksvalidatequerystringcss nestingtoStringTagecmascriptFloat64ArrayxhraccessibilityArray.prototype.filtercomparezxsuperagenttrimlinkReflect.getPrototypeOfjsonschemafast-clonereverseObject.definePropertytoolsjsperformanceUint8ClampedArray3dreversedObservablesObject.isqueueMicrotaskredactcheckchromeesbinprotosignalcertificatesthreeincludesmacosec2json-schema-validatorpostcssReactiveExtensionsassertlinuxebsfluxIteratorSymbol.toStringTaglivedescriptionAsyncIteratorglaciershamnamePromiseUint16ArrayswfmatchesURLSearchParamsnopechannellesscssstringifiervariablesformstreamsreplayreact-componentreusecloudwatchpyyamlcallbackutilitiesrgbconsumejwtclass-validatorkeysCSSStyleDeclarationES7curriedzerogenericscolumnidledataViewmulti-packageObject.getPrototypeOfpopmotion$.extendjson-schema-validationRegExp#flagseslintconfigievaluearraytoSortedtypedarraysfiltercolorsformatcoerciblecallbindwhichES2018dataviewoffsetdependenciesimmutable
2.9.84

1 year ago

2.8.84

1 year ago

2.8.83

1 year ago

2.8.82

1 year ago

2.7.82

1 year ago

2.7.81

1 year ago

2.7.80

1 year ago

1.7.80

1 year ago

1.7.79

1 year ago

1.7.78

1 year ago

1.7.77

1 year ago

1.7.76

1 year ago

1.7.75

1 year ago

1.7.74

1 year ago

1.7.73

1 year ago

1.7.72

1 year ago

1.7.71

1 year ago

1.6.71

1 year ago

1.6.70

1 year ago

1.6.69

1 year ago

1.6.68

1 year ago

1.6.67

1 year ago

1.6.66

1 year ago

1.6.65

1 year ago

1.6.64

1 year ago

1.6.63

1 year ago

1.5.63

1 year ago

1.5.62

1 year ago

1.5.61

1 year ago

1.5.60

1 year ago

1.5.59

1 year ago

1.5.58

1 year ago

1.4.58

1 year ago

1.3.58

1 year ago

1.3.57

1 year ago

1.3.56

1 year ago

1.3.55

1 year ago

1.3.54

1 year ago

1.3.53

1 year ago

1.3.52

1 year ago

1.3.51

1 year ago

1.3.50

1 year ago

1.3.49

1 year ago

1.3.48

1 year ago

1.3.47

1 year ago

1.3.46

1 year ago

1.3.45

1 year ago

1.3.44

1 year ago

1.3.43

1 year ago

1.2.43

1 year ago

1.2.42

1 year ago

1.2.41

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago