Skip to content

Conversation

JairusSW
Copy link
Contributor

@JairusSW JairusSW commented Jul 6, 2024

Whenever importing from within a transform,

import { Transform } from "assemblyscript/dist/transform.js";
import { Parser } from "assemblyscript/dist/assemblyscript.js";

I get the following warning:

compiler mismatch: std/portable included twice

The warning occurs with nearly every transform I have written and since it writes to stderr which is problematic.

Instead of warning the user when std/portable is imported twice, it seems more reasonable just to ignore it altogether. After all, its the compiler importing it twice, not the user.

@JairusSW JairusSW changed the title fix: unnecessary warn fix: std/portable included twice Jul 6, 2024
@CountBleck CountBleck merged commit f79391c into AssemblyScript:main Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants