| 97 | |
| 98 | |
| 99 | class Options: |
| 100 | def __init__(self): |
| 101 | self.export_name = 'Module' |
| 102 | self.has_preloaded = False |
| 103 | self.has_embedded = False |
| 104 | self.jsoutput = None |
| 105 | self.obj_output = None |
| 106 | self.depfile = None |
| 107 | self.from_emcc = False |
| 108 | self.quiet = False |
| 109 | self.force = True |
| 110 | # If set to True, IndexedDB (IDBFS in library_idbfs.js) is used to locally |
| 111 | # cache VFS XHR so that subsequent page loads can read the data from the |
| 112 | # offline cache instead. |
| 113 | self.use_preload_cache = False |
| 114 | self.indexeddb_name = 'EM_PRELOAD_CACHE' |
| 115 | # If set to True, the package metadata is stored separately from js-output |
| 116 | # file which makes js-output file immutable to the package content changes. |
| 117 | # If set to False, the package metadata is stored inside the js-output file |
| 118 | # which makes js-output file to mutate on each invocation of this packager tool. |
| 119 | self.separate_metadata = False |
| 120 | self.lz4 = False |
| 121 | self.use_preload_plugins = False |
| 122 | self.support_node = True |
| 123 | self.wasm64 = False |
| 124 | self.export_es6 = False |
| 125 | |
| 126 | |
| 127 | @dataclass |