Directly importing files between them should be compile time error:
// file: foo/main.w
bring "../bar/other.w" as other; // error: cannot directly import files from another Wing package
It feels like it may be a safer boundary if we require that a library must take an explicit dependency on another in order to be used, and imports must be made through the library name.
This happened:
No error is raised today
I expected this:
No response
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.85.9
Node.js Version
No response
Platform(s)
No response
Community Notes
Please vote by adding a 👍 reaction to the issue to help us prioritize.
If you are interested to work on this issue, please leave a comment.
I tried this:
If you have two different Wing packages:
Directly importing files between them should be compile time error:
It feels like it may be a safer boundary if we require that a library must take an explicit dependency on another in order to be used, and imports must be made through the library name.
This happened:
No error is raised today
I expected this:
No response
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.85.9
Node.js Version
No response
Platform(s)
No response
Community Notes