Unverified Commit 91b8dcbc authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

fix windows path for dwds (#37658)

parent fef69b20
......@@ -173,7 +173,8 @@ class WebFs {
logWriter: (dynamic level, String message) => printTrace(message),
);
// Map the bootstrap files to the correct package directory.
final String targetBaseName = fs.path.withoutExtension(target).replaceFirst('lib/', '');
final String targetBaseName = fs.path
.withoutExtension(target).replaceFirst('lib${fs.path.separator}', '');
final Map<String, String> mappedUrls = <String, String>{
'main.dart.js': 'packages/${flutterProject.manifest.appName}/'
'${targetBaseName}_web_entrypoint.dart.js',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment