OpenJSCAD.org icon indicating copy to clipboard operation
OpenJSCAD.org copied to clipboard

ES6 module support

Open z3dev opened this issue 5 years ago • 0 comments

Expected Behavior

Currently, there is no way to use the various packages as standard JavaScript modules. For example, in browsers...

<script type="module">import {primitives} from "https://unpkg.com/@jscad/modeling";</script>

Actual Behavior

I believe that this can be accomplished without any code changes by using WebPack, creating both UMD and ES6 modules.

Steps to Reproduce the Problem

  1. Not possible.

Specifications

  • Version: V2
  • Platform: All
  • Environment: all

z3dev avatar Oct 15 '20 01:10 z3dev