samualtnorman / hackmud-script-manager

Script manager for game hackmud, with minification, TypeScript support, and player script type definition generation.
https://www.npmjs.com/package/hackmud-script-manager
MIT License
11 stars 5 forks source link

Support for json file import #208

Open highcard opened 5 months ago

samualtnorman commented 5 months ago

Fixed in d76d6688430f38da4f2c425aea5212dfd5e92422.

The next release to have this fix will be 0.21.

To receive the fix early:

You can import .json files like so:

import myJson from "./path/to/my.json"

export default function () {
    return myJson
}