-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] allow imports to line-break #57170
[web] allow imports to line-break #57170
Conversation
goderbauer
left a comment
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.
LGTM
045cd24 to
81816cc
Compare
|
Looks like something is still failing with the line breaks… |
|
@yjbanov I think we need to remove this restriction now: engine/web_sdk/test/js_access_test.dart Lines 184 to 187 in f0ff4f2
(this is what's causing the CI failure) |
|
Yep, fixed. |
|
auto label is removed for flutter/engine/57170, due to - The status or check suite Linux local_engine_builds has failed. Please fix the issues identified (or deflake) before re-applying this label. |
| // Remove library directives. | ||
| AllReplacer(RegExp(r'\nlibrary .+;'), ''), | ||
| // Remove imports/exports from all part files. | ||
| AllReplacer(RegExp(r"\nimport '.+'\n\s*if \(dart\.library\..*\) '.*';"), ''), |
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.
Not that it matters too much, but I'd do a simpler regex to handle both import cases?
?
…160290) flutter/engine@f0ff4f2...c4e3cc2 2024-12-13 [email protected] [skwasm] Fix implementation of SkwasmPath.relativeLineTo (flutter/engine#57201) 2024-12-13 [email protected] Made compilation error colors come through et. (flutter/engine#57174) 2024-12-13 [email protected] Roll Fuchsia Linux SDK from iWMEbVYaNdH8RJmXZ... to iYz_WkWk1uPr8BLSZ... (flutter/engine#57198) 2024-12-13 [email protected] [web] allow imports to line-break (flutter/engine#57170) 2024-12-13 [email protected] [ios]limit web view not tappable workaround to a limited depth (flutter/engine#57193) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from iWMEbVYaNdH8 to iYz_WkWk1uPr If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
We are about to `dart format` all the Dart code in the repo, which line-breaks some of our imports. This PR updates `sdk_rewriter.dart` to support line-broken imports.
We are about to
dart formatall the Dart code in the repo, which line-breaks some of our imports.This PR updates
sdk_rewriter.dartto support line-broken imports.