[TS/JS] Add rollup and config to generate iife flatbuffers bundle (#7449)

* Add rollup and config to generate iife flatbuffers bundle

* Atempt to use yarn and add deps

Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
Björn Harrtell
2022-08-30 01:37:43 +02:00
committed by GitHub
parent 41d9add7ef
commit ce382d6dd3
4 changed files with 25 additions and 2 deletions

8
rollup.config.js Normal file
View File

@@ -0,0 +1,8 @@
export default {
input: 'mjs/index.js',
output: {
file: 'flatbuffers.js',
format: 'iife',
name: 'flatbuffers'
}
}