Skip to content

Compiling release without sourceMap create a sourcemap named "false" #2751

Closed
@DaGaMx

Description

@DaGaMx

Bug description

I am new to AssemblyScript and followed your tutorial:
https://www.assemblyscript.org/getting-started.html#setting-up-a-new-project

I checked the output files in a hex editor and was wondering that the release ends with "sourceMappingURL" "false".
Then I saw that a file named "false" is generated in the output folder.

Steps to reproduce

Execute this:
npx asc "C:\test\assembly\index.ts" --target release -o "C:\test\assembly\output\release\index.wasm" -Ospeed --noAssert --optimizeLevel 3

In the output folder "C:\test\assembly\output\release" will be a file named "false".
The output file "C:\test\assembly\output\release\index.wasm" will contain a reference to that source map.

As far as I understand the compiler manual, the source map should only be generated if I specify --sourceMap.

AssemblyScript version

v0.27.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions