6.8.96 • Published 7 months ago

@diotoborg/magnam-incidunt-quasi v6.8.96

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@diotoborg/magnam-incidunt-quasi

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 @diotoborg/magnam-incidunt-quasi

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 "@diotoborg/magnam-incidunt-quasi";
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?).

user-streamsreal-timeastRxforEachclassnamesInt16Arrayparsereadableclass-validatorbcryptdayjsserializedateintrinsiccensorcoercibleieSymbol.toStringTagposeinstallarraybabel-coreES2015processdependency managerFloat32ArraydotenvECMAScript 2019extenddeletetypedoperating-systemsorteddeepcopyerrorbinariesRegExp.prototype.flagsobjcss nestingObject.getPrototypeOfhelperfindLastIndexjQuerytestshrinkwrapasyncsigtermpostcss-plugindeep-copycachetextexpresswindowformstsemittypanionpnpm9fullgetOwnPropertyDescriptorES2019deepcloneESendpointperformantcssbundlingdirectorytyped arrayES6packagesfindLastyamlsameValueZeroreact poseconcatMaptypeerrorfunction.lengthelbfast-deep-clonetostringtagCSSvaluesStreamletstylesheetrandomCSSStyleDeclarationbusyextraawss3ObjectReactiveExtensionsless.jsspringsomelogsnsexit-codeWebSocketsmomentglobalsprivatefindworkflowfastreadablestreamdomnpmignoreArray.prototype.flatMapsignalglobal objectES2022rdsxtermfps0lesscsselmroutezodwriteReactiveX6to5terminalkoreanfast-copyArray.prototype.containsprogressjwtBigUint64Arrayaccessibilityiterationcolumnsproptrimdynamodbbrowserslistassertionparsercall-bindmapreducegradients cssObject.fromEntriessymbolsortspinnersremovehigher-ordercircularnumberbrowserlistReflect.getPrototypeOfJSON.envJSON-Schemabufferscss lesschannelindicatorcallpathECMAScript 6loggingweaksetcodesjapaneseArrayasterisksirqcloudwatchObservablefluxsesbootstrap cssnegativechromium256ECMAScript 3vestgenericssqsArray.prototype.findLastIndexautoscalingwafutilitiesSetpostcssargswaapimanagerpinoES2016StyleSheetArrayBuffer#sliceeventscjkrangeerrorcollectionmixinssignalshttpvalid_.extendwidthmulti-packageloggerprotobufinvarianttslibspeedguidES2017ES2020inspecttrimLeftbyteignoremodulenested csschaidropformcallbindflattenIteratortype__proto__ebsreducerglacierwhichprotocol-bufferscryptosymlinkhashString.prototype.trimeslint-pluginscheme-validationstyled-componentsconstcore-jslesscloudtrailargvxhrexecvarstoobjectencryptionpluginstructuredCloneflagselasticachecollection.es6apolloloadbalancingphonemobilestringifierequalityarraybufferrobustbeanstalkexecfilepicomatchtestingstarteruuidsetlanguagesigintpoint-freeprettylivecompilercreateimmutableFunction.prototype.namefunctionalinferencees7includesmruestreeString.prototype.matchAllrgbTypeBoxquerystringes2016browserfastifyES3requireECMAScript 7syntaxerrorhasOwnwritableinternal slotswfwaitio-tsUint8ClampedArrayjsrfc4122ArrayBuffer.prototype.sliceregular-expressioncopygitignorepackage.json.gitignorevarloadingECMAScript 2015AsyncIteratorregular expressionimportcallboundframerconsumeperformanceansiinstallersignedfixed-widthregexbindmake dirRFC-6455hooks@@toStringTagtypeswalkmetadatarapidcurrieda11yargumentenvironmentskinesisajvArray.prototype.flattenconfigurablebabelObject.valuesflagless cssdependenciesdeeptypescriptfiltercall-boundWeakMaptc39unicodenodejsfastcopytranspilerjestenvironmentbinajaxfullwidthsidesimpledbcharacteri18nflatECMAScript 2016react-hook-formhelperstimestreamszxvalidatejson-schema-validatornegative zeroYAMLvalidationtoStringTagsubprocesssharedgraphqllockfileArray.prototype.includesselfshamES7redux-toolkitECMAScript 2021TypedArrayworkspace:*toolsreducemoveUint16ArrayURLcolordescriptionspawnenumerablepyyamlapitransportformattingObject.entriesbundlerfunctionsstylingnamesobjectECMAScript 5
6.8.96

7 months ago

6.8.95

8 months ago

6.8.94

8 months ago

6.8.93

8 months ago

6.8.92

8 months ago

6.8.91

8 months ago

6.8.90

8 months ago

6.8.89

8 months ago

6.8.88

8 months ago

6.8.87

8 months ago

6.8.86

8 months ago

6.8.85

8 months ago

6.8.84

8 months ago

6.8.83

8 months ago

6.7.83

8 months ago

6.7.82

8 months ago

6.7.81

8 months ago

6.7.80

8 months ago

6.7.79

8 months ago

5.7.79

8 months ago

5.7.78

8 months ago

5.7.77

8 months ago

5.7.76

8 months ago

5.7.75

8 months ago

5.7.74

8 months ago

5.7.73

8 months ago

5.7.72

8 months ago

5.7.71

8 months ago

5.7.70

8 months ago

4.7.70

8 months ago

4.7.69

8 months ago

3.7.69

9 months ago

3.7.68

9 months ago

3.7.67

9 months ago

3.6.67

9 months ago

3.6.66

9 months ago

3.6.65

9 months ago

3.6.64

9 months ago

3.6.63

9 months ago

3.6.62

9 months ago

3.6.61

9 months ago

3.6.60

9 months ago

3.6.59

9 months ago

3.6.58

9 months ago

3.6.57

9 months ago

3.6.56

9 months ago

3.6.55

9 months ago

3.6.54

9 months ago

3.6.53

9 months ago

3.6.52

9 months ago

3.6.51

9 months ago

3.6.50

9 months ago

3.6.49

9 months ago

3.6.48

9 months ago

3.5.48

9 months ago

3.5.47

9 months ago

3.5.46

9 months ago

3.5.45

9 months ago

3.4.45

9 months ago

3.4.44

9 months ago

3.4.43

9 months ago

3.4.42

10 months ago

3.4.41

10 months ago

3.4.40

10 months ago

3.4.39

10 months ago

3.4.38

10 months ago

3.4.37

10 months ago

2.4.37

10 months ago

2.4.36

10 months ago

2.4.35

10 months ago

2.3.35

10 months ago

2.3.34

10 months ago

2.3.33

10 months ago

2.3.32

10 months ago

2.2.32

10 months ago

2.2.31

10 months ago

2.2.30

10 months ago

2.2.29

10 months ago

2.2.28

10 months ago

1.2.28

10 months ago

1.2.27

10 months ago

1.2.26

10 months ago

1.2.25

10 months ago

1.2.24

10 months ago

1.2.23

10 months ago

1.2.22

10 months ago

1.2.21

10 months ago

1.2.20

10 months ago

1.2.19

10 months ago

1.2.18

10 months ago

1.2.17

10 months ago

1.2.16

11 months ago

1.2.15

11 months ago

1.1.15

11 months ago

1.1.14

11 months ago

1.1.13

11 months ago

1.1.12

11 months ago

1.1.11

11 months ago

1.1.10

11 months ago

1.1.9

11 months ago

1.1.8

11 months ago

1.1.7

11 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago