straight-skeleton
straight-skeleton copied to clipboard
Run it in nodeJs
Hello,
First of all thanks for this package! When i try to use it with "CommonJS" in package.json and tsconfig.json , i have succeed to load it with
const { SkeletonBuilder } = require('straight-skeleton');
or
import { SkeletonBuilder } from "straight-skeleton";
But when i try the init, i have this error below
Do you know why ?
did you find a way to solve the issue?
@pcace yes i have rebuild the package and targeting node platform. I can provide a fork if you want.
Hi there, i have made my own fork and moved to rollup since webpack for me is horrible to configure ;)
https://github.com/pcace/weighted-straight-skeleton
it is fully running in web and node now
cheers