-
Hi, Marcus |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello, Marcus, I am so sorry that I missed your question. You can take it as umd package from <script src='https://unpkg.com/@flatten-js/core'></script> or as es6 package with <script type="module">
import {point, circle, segment} from "https://unpkg.com/@flatten-js/core?module";
// make some construction
</script> |
Beta Was this translation helpful? Give feedback.
-
I have a similar question. I am strictly running in a browser like above, but will also need to modify the flatten-js code. Can this be done without having to publish a new package every time I make a change to the library? Ideally I'd like to serve flatten-js directly from the source tree during development. I am not really familiar with how Node and npm really differ from straight javascript in a browser. I tried including the "index.js" script in my html page. But but there were issues like the imports all needing to specify the .JS file extension (ie './utils/constants.JS'). I guess under node the .JS is assumed. Once I got past that there were other package dependencies like flatten/tree-interval that I am not yet sure how to fix up. Am I going about this the right way? Thanks! |
Beta Was this translation helpful? Give feedback.
Hello, Marcus,
I am so sorry that I missed your question.
I hope you've already found the answer in the examples section of the repository.
You can take it as umd package from
unpackage.com
or as es6 package with
script type="module"
tag