JSPM

@wemap/rollup-plugin-arraybuffer

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1190
  • Score
    100M100P100Q120137F
  • License ISC

Rollup plugin for arraybuffer

Package Exports

  • @wemap/rollup-plugin-arraybuffer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wemap/rollup-plugin-arraybuffer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm size

@wemap/rollup-plugin-arraybuffer

🍣 A Rollup plugin which convert a binary file to a Uint8Array

Install

Using npm:

npm install @wemap/rollup-plugin-arraybuffer --save-dev

Usage

import arraybuffer from '@wemap/rollup-plugin-arraybuffer';

export default {
  input: 'src/index.js',
  output: {
    dir: 'output',
    format: 'cjs'
  },
  plugins: [arraybuffer({ include: '**/*.glb' })]
};

Options

exclude

Type: String | Array[...String]
Default: null

A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.

include

Type: String | Array[...String]
Default: null