walt-buildtools
Advanced tools
Comparing version 0.0.5 to 0.1.0
{ | ||
"name": "walt-buildtools", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "Walt build utils", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -45,3 +45,4 @@ /** | ||
); | ||
if (type === "Memory") { | ||
if (type.value === "Memory") { | ||
hasMemory = true; | ||
@@ -118,5 +119,6 @@ } | ||
} | ||
const code = api.generator( | ||
mod.ast, | ||
Object.assign({}, options, { linker: { statics } }) | ||
Object.assign({}, options, { filename: mod.filepath.split('/').slice(-1)[0], linker: { statics } }) | ||
); | ||
@@ -138,2 +140,3 @@ const wasm = api.emitter(code, options).buffer(); | ||
filepath, | ||
encodeNames: true | ||
}; | ||
@@ -140,0 +143,0 @@ |
@@ -11,2 +11,5 @@ "use strict"; | ||
const module = importNode.params[1]; | ||
if (!deps[module.value]) { | ||
return importNode; | ||
} | ||
@@ -13,0 +16,0 @@ return compiler.mapNode({ |
@@ -5,2 +5,5 @@ // Print nodes like JSX elements | ||
function getValue(node) { | ||
if (typeof value !== 'string') { | ||
return node.value; | ||
} | ||
if (node.value.length < 60) { | ||
@@ -7,0 +10,0 @@ return node.value; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10859
330