swift
swift copied to clipboard
Fix `Bundle.module` paths
Currently use of Bundle.module for static resources causes issues, check the URL generated by carton with SwiftWasm 5.6 in this code: https://github.com/swiftwasm/carton/blob/b9dab08e869f51415a55b3bb15a3e29cfd1e16e7/Tests/Fixtures/TestApp/Sources/TestApp/main.swift#L48
It contains full path to the toolchain, which is obviously invalid.
FWIW I think the full path was embedded by SwiftPM code generator for Bundle.module