Open ApproximateIdentity opened 3 years ago
Its been a while since I worked on this, don't have any immediate feedback. Back then, I used rollup.js for bundling up the model .
the same question
Got it, little modification in rollup.config.js
should work
Use rollup-plugin-terser
instead of rollup-plugin-babel-minify
as the latter one is archived, maybe something incompatible. And this will fix the wtf Banner
problem.
By the way, rollup-plugin-node-resolve
is archived too, better change to @rollup/plugin-node-resolve
.
the final code is like this:
// import minify from 'rollup-plugin-babel-minify';
// import resolve from 'rollup-plugin-node-resolve';
import {nodeResolve} from '@rollup/plugin-node-resolve';
import {terser} from 'rollup-plugin-terser';
// ..
plugins: [nodeResolve(), terser()]
@victordibia @ApproximateIdentity
I tried installing a fresh node environment:
Then I tried to run build:
Okay so I tried installing
rollup
:Then I tried running build again:
What am I missing here? I'm sure this is something basic and obvious for those a bit more experienced with node, but I'm a little lost. By the way, I'm running
Thanks for any help! And thanks for the super interesting project!