porffor 0.17.0-b92c546cf → 0.17.0-c2af76d41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,8 @@ import { join } from 'node:path';
6
6
 
7
7
  import { fileURLToPath } from 'node:url';
8
8
  const __dirname = fileURLToPath(new URL('.', import.meta.url));
9
+ globalThis.precompileCompilerPath = __dirname;
10
+ globalThis.precompile = true;
9
11
 
10
12
  const argv = process.argv.slice();
11
13
 
@@ -14,7 +16,7 @@ const compile = async (file, [ _funcs, _globals ]) => {
14
16
  let first = source.slice(0, source.indexOf('\n'));
15
17
 
16
18
  if (first.startsWith('export default')) {
17
- source = (await import(file)).default();
19
+ source = await (await import(file)).default();
18
20
  first = source.slice(0, source.indexOf('\n'));
19
21
  }
20
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.17.0-b92c546cf",
4
+ "version": "0.17.0-c2af76d41",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},