dott
dott
use framework to manager canvas https://mithril.js.org/index.html like class PIXI.Application like this > pixi component ``` import m from 'mithril'; let canvasStyle = {left: '0%', top: '0%', width: '100%', height: '100%'};...
if only use @rollup/plugin-node-resolve , it is okay ! need use two plugins ! (minimal) ``` import alias from '@rollup/plugin-alias'; import resolve from '@rollup/plugin-node-resolve'; ```
is it this ? https://repl.it/repls/FrailSilverPoints#rollup.config.js
### current status (use the same config) I am not sure ! need modify plugin "@rollup/plugin-alias" or "@plugin-node-resolve" in last version #### option 1 it is work ! ``` "@rollup/plugin-alias":...
I rewrite question. map key is string . tosource and dataToEsm has different result. yaml example http://nodeca.github.io/js-yaml/#yaml=LS0tCicxJzogYQonMDEnOiBiCicwMDEnOiBjCicwMDAxJzogZAo=
fixed !! i use rollup and plugins to build browser version Buffer is global - rollup-plugin-node-globals - rollup-plugin-node-builtins ``` let buffer = type.toBuffer({kind: 'CAT', name: 'Albert', age: 987}); // Encoded...