Skip to content

Commit

Permalink
[Wasm] Remove default exports from main mjs file in Wasm
Browse files Browse the repository at this point in the history
^KT-65799 fixed
  • Loading branch information
ilgonmic authored and qodana-bot committed Aug 19, 2024
1 parent acec248 commit 8627c94
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,6 @@ fun WasmCompiledModuleFragment.generateExports(): String {

/*language=js */
return """
export default new Proxy(exports, {
_shownError: false,
get(target, prop) {
if (!this._shownError) {
this._shownError = true;
throw new Error("Do not use default import. Use the corresponding named import instead.")
}
}
});
${exportNames?.let { "export $it = exports;" }}
"""
}

0 comments on commit 8627c94

Please sign in to comment.