Skip to content

Instantly share code, notes, and snippets.

@cmidgley
Created May 19, 2022 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmidgley/308fb4211cb8aed093faca94cd225372 to your computer and use it in GitHub Desktop.
Save cmidgley/308fb4211cb8aed093faca94cd225372 to your computer and use it in GitHub Desktop.
WeakMap crash with preload
import { MyClass } from './myclass';
const weak = new WeakMap();
weak.set(MyClass, {});
trace('Success\n');
{
"include": [
"$(MODDABLE)/examples/manifest_base.json"
],
"modules": {
"*": ["./*"]
},
"preload": ["myclass"],
"strip": []
}
export class MyClass {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment