-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface imports in output files #662
Comments
@KoltesDigital May i know your app setup? |
@bigopon I'm trying to make an Aurelia project (almost empty in itself) work with JSPM 2. You can read jspm/jspm-cli#2454 while I commit the project state. |
@KoltesDigital thanks. I'll have a look at the build |
@EisenbergEffect templating/src/binding-language.js Line 23 in ea994d1
We can degrade the interface to |
My two cents, you shouldn't degrade the code, i.e. lose guarantees that the code is correct. Scope is not the only problematic interface, I saw at least two other ones. I believe it would be better to configure the transpiler to not output interfaces, which ts does... But I don't know at all your release process. |
@KoltesDigital I've checked the build, it's an old process so we probably don't want to touch that part. Beside that, let binding is not what you would use directly, so its interface, even when degraded to |
Agreed. What about |
@bigopon I'd do the minimum we can to resolve @KoltesDigital 's issue. I'm wary of a big conversion or removing anything that was previously published in the dts. If widening a type can address the issue, I think that's ok for now. As you know, these issues are solved automatically for vNext by virtue of it all being TS and the new build processes there. |
Good news for vNext, I haven't followed up. Well this issue appeared because I tested JSPM 2 which is still in progress too... I better stay on JSPM 0.17 for now, and hopefully both libraries will be ready soon. |
I'm submitting a bug report
Library Version:
aurelia-binding: 2.3.0
aurelia-templating: 1.10.2
Language:
all
Current behavior:
aurelia-templating
's output files (indist/es2015
,dist/native-modules
, anddist/system
but the latter does not lead to an error) import interfaces fromaurelia-binding
. Since they do not exist inaurelia-binding
's output files, they can't be imported at runtime.Expected/desired behavior:
Interfaces should not be imported in the output files.
The text was updated successfully, but these errors were encountered: