fix: Fractional index validation (#11258)
- Vendored fractional-indexing and converted to TypeScript - Stricter index format validation in fractional-indexing - Added format validation to fractional index validation --- Signed-off-by: Mark Tolmacs <mark@lazycat.hu> Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
@@ -45,6 +45,20 @@ export default defineConfig({
|
||||
find: /^@excalidraw\/utils\/(.*?)/,
|
||||
replacement: path.resolve(__dirname, "./packages/utils/src/$1"),
|
||||
},
|
||||
{
|
||||
find: /^@excalidraw\/fractional-indexing$/,
|
||||
replacement: path.resolve(
|
||||
__dirname,
|
||||
"./packages/fractional-indexing/src/index.ts",
|
||||
),
|
||||
},
|
||||
{
|
||||
find: /^@excalidraw\/fractional-indexing\/(.*?)/,
|
||||
replacement: path.resolve(
|
||||
__dirname,
|
||||
"./packages/fractional-indexing/src/$1",
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
//@ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user