2.9.84 • Published 10 months ago

@erboladaiorg/error-vel-excepturi v2.9.84

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

2.8.84

10 months ago

2.8.83

10 months ago

2.8.82

10 months ago

2.7.82

10 months ago

2.7.81

10 months ago

2.7.80

11 months ago

1.7.80

11 months ago

1.7.79

11 months ago

1.7.78

11 months ago

1.7.77

11 months ago

1.7.76

11 months ago

1.7.75

11 months ago

1.7.74

11 months ago

1.7.73

11 months ago

1.7.72

11 months ago

1.7.71

11 months ago

1.6.71

11 months ago

1.6.70

11 months ago

1.6.69

11 months ago

1.6.68

11 months ago

1.6.67

11 months ago

1.6.66

11 months ago

1.6.65

11 months ago

1.6.64

11 months ago

1.6.63

11 months ago

1.5.63

11 months ago

1.5.62

11 months ago

1.5.61

11 months ago

1.5.60

11 months ago

1.5.59

11 months ago

1.5.58

11 months ago

1.4.58

11 months ago

1.3.58

11 months ago

1.3.57

11 months ago

1.3.56

11 months ago

1.3.55

12 months ago

1.3.54

12 months ago

1.3.53

12 months ago

1.3.52

12 months ago

1.3.51

12 months ago

1.3.50

12 months ago

1.3.49

12 months ago

1.3.48

12 months ago

1.3.47

12 months ago

1.3.46

12 months ago

1.3.45

12 months ago

1.3.44

12 months ago

1.3.43

12 months ago

1.2.43

12 months ago

1.2.42

12 months ago

1.2.41

12 months ago

1.1.41

12 months ago

1.1.40

12 months ago

1.1.39

12 months ago

1.1.38

12 months 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