-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add @babel/runtime #692
Add @babel/runtime #692
Conversation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
I'm not sure we still needs the babel/plugin-transform-xxx to be honest. |
Why does nextcloud-vue need babel/core-js at all? Isn't it sufficient if the apps using nextcloud-vue use babel/core-js? |
They need to specifically specify to babel to include the vue components then :) |
I don't really know how to test this. Checking out the branch, running |
Ok I guess in that case we should make sure that tthe required transpiling packages are not excluded in the wepack config since #679 just excluded all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#691 did also appear for me. After using this PR the issue was fixed. I'm not sure if the steps by @raimund-schluessler are sufficient to test this. Here is what I did:
- in my local
nextcloud-vue
clone, checkout this branch - execute
npm install
,make build-js-production
,npm link
- in my app's directory, execute
npm link @nextcloud/vue
,make build-js
- everything is fine :-)
my tests where not sufficient, now the error is not reproducable any more
Okay, I did the test wrong. But I think adding |
Following this seems to fix the issue for Tasks. 👍 |
this does not happen. |
I actually think this should be the apps responsibility. Other libraries also just ship their ES6 modules and the app needs to handle making them compatible to the browser stack that should be supported. General transpiling is done in |
so, what is the status here? :) |
I agree with @juliushaertl and vote for removing babel/corejs from |
As a comparison, out datepicker recently release 3.0.0, where they added babel to be compatible with ie. I think it's less trivial to have default working deps than having to do webpack trick to include specific packages in the transpiler. |
Second that. I would also argue that we should transpile this lib already, given that we have a shared browserslist config and thus know what apps most likely want to be compatible with. |
Can we give that a try? |
So what do I have to do to get nextcloud/tasks#688 running? |
Fix in #749 |
Fixes #691
According to https://babeljs.io/docs/en/babel-plugin-transform-runtime @babel/plugin-transform-runtime requires @babel/runtime as a production dependency.
@skjnldsv @ChristophWurst I though babel/polyfill should no longer be needed. Still seems to work fine with IE11 if the app is taking care of a proper babel tranformation. It was not imported in @nextcloud/vue anyway.