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
@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-devUsage
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