1.0.8 • Published 5 years ago

arraybuffer-loader v1.0.8

Weekly downloads
6,585
License
MIT
Repository
github
Last release
5 years ago

ArrayBuffer loader for webpack

NPM

npm Travis Build status Dependency Status devDependency Status Maintainability Greenkeeper badge

Supported Platforms

  • Modern Browsers (IE >= 10)
  • Node.js

Getting Started

$ yarn add arraybuffer-loader

or

$ npm install arraybuffer-loader --save-dev

Usage

If you read only the specific extensions (e.g. wasm), please add loader in webpack.config.js.

module: {
  rules: [
    {
      test: /\.png$/,
      loaders: ['arraybuffer-loader'],
    },
  ],
},

Or if reading an arbitrary extension, use require.

const buffer = require('arraybuffer!./data.dat')
const array = new Uint8Array(buffer)

See also offical document Loaders.

For .wasm file

Webpack 4 or later has embedded WASM parser. So, please set type: 'javascript/auto' when use arraybuffer-loader.

module: {
  rules: [
    {
      test: /\.wasm$/,
      type: 'javascript/auto',
      loaders: ['arraybuffer-loader'],
    },
  ],
},

License

MIT © Pine Mizune

@wincax8968/scratch-vmmircoai-guimircoai-vmscratch-gui-freerangeglitchyscratch-guiscratch-gui@everything-registry/sub-chunk-1165ircbloq-vmhcbot-vmhcbot2023-vmjsfluidsitch-scratch-guikulbot-guikulbot-vmhappycode-storagehappycode-vm@bbge/vm@codioedu/scratch-storage@codioedu/scratch-vm@cybergenios/scratch-gui@hapticsynaptic/braceletmaker-gui@hapticsynaptic/braceletmaker-vm@finos/perspective-webpack-plugin@jsrsc/scratch-vm@jpmorganchase/perspective-webpack-pluginscratch-gui-astrogeco-vmopenblock-guiopenblock-vmmodi-scratch-vmmicropythonmicy-vmminecraft-storeys-scratch-guiminecraft-storeys-scratch-vmrapzz-storagepyatch-vmscratch-gui-cntscratch-gui-groundhogscratch-gui-liaoscratch-gui-okagvscratch-gui-pearupscratch-arduino-guiscratch-arduino-vmscratch-vmscratch-vm-cobascratch-vm-dabanscratch-vm-dingdangcodescratch-vm-gakkoscratch-vm-groundhogscratch-storagescratch-vm-jxnscratch-vm-runkidscratch-vm-syncscratch-vm-wlxscratch-vm-xxbcscratch-vmzhscratch-yusj-vmscratchhw-vmscratchhw-guirobopro-guirobopro-vmshan-scratch-guitowneditor-guitowneditor-vmsuyuan-vmsuny-guisuny-vmwawu-scratch-guiwiinblock-vmwysebee-vm@intesso/scratch-vm@mavenomics/chart-parts@rockpack/compiler@raspberrypifoundation/scratch-gui@olli-vn/scratch-vm@sondregj/flare-react@simzero/jsfluids@team-monolith/scratch-gui@shortex/perspective-webpack-pluginartie-scratch-vmaircbloq-vmakid-guiakid-vm@wdr-data/scratch-storage@wdr-data/scratch-vm@turbowarp/scratch-storagebbge-vmcodevider-scratch-guicodi-storagecodi-vmclipcc-storageclipcc-vmclipcc-guicoba-scratch-virtual-machinecoba-scratch-vmdelightmom-scratch-guidelightmom-scratch-vmeasy-scratch-vmdawn-scratch-storagefancy-scratch-storage
1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.2

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago