[x3d-public] import fs as ‘fs’. Babel?

John Carlson yottzumm at gmail.com
Thu Mar 9 03:15:26 PST 2023

Here is a basic webpack/babel/express/https example for loading node.js
.mjs files with

import fs from "fs"

into the client.

Let me know if you get any errors.

If anyone wants to create a tutorial (there are *way* too many options
online) or otherwise copy over to X3DJSONLD, let me know.


This is up-to-date everything except nodejs, which is at: v18.13

I'm hoping to progress with X3DJSONLD fairly soon.


On Thu, Feb 23, 2023 at 7:40 PM John Carlson <yottzumm at gmail.com> wrote:

> Does anyone know how to use JavaScript server code on client?   I think
> the answer is Babel.
> Thanks!
> John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230309/709057f4/attachment.html>

More information about the x3d-public mailing list