Skip to content

Commit

Permalink
[Win32] [0.72] Remove flow usage from saveAssetPlugin codeflow (#12081)
Browse files Browse the repository at this point in the history
* [Win32] Remove flow usage from saveAssetPlugin codeflow (#12080)

* Remove flow usage from saveAssetPlugin codeflow

* Change files

* fix change files
  • Loading branch information
acoates-ms committed Aug 25, 2023
1 parent e1ba8c7 commit 89c50c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "prerelease",
"type": "patch",
"comment": "fix a11yState and add support for aria-required and -multiselectable",
"packageName": "@office-iss/react-native-win32",
"email": "krsiler@microsoft.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Remove flow usage from saveAssetPlugin codeflow",
"packageName": "@office-iss/react-native-win32",
"email": "30809111+acoates-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* @flow strict-local
* Dont use flow here, since this file is used by saveAssetPlugin.js which will run without flow transform
* @format
*/

Expand All @@ -12,7 +12,7 @@
// https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation
// Assets in nested node_modules (common when using pnpm) - end up creating very long paths
// Using this function we shorten longer paths to prevent paths from hitting the path limit
function ensureShortPath(str: string): string {
function ensureShortPath(str) {
if (str.length < 40) return str;

const assetsPrefix = 'assets/';
Expand Down

0 comments on commit 89c50c3

Please sign in to comment.