mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 08:30:33 +08:00
Move KeyHelpers to Outline package (#389)
* Move KeyHelpers to Outline package * More tweaks * More tweaks * More fixes * Fix test * Fix test * Fix test
This commit is contained in:

committed by
acywatson

parent
e87decc372
commit
2f6274737c
@ -124,24 +124,26 @@ async function build(name, inputFile, outputFile) {
|
||||
plugins: [
|
||||
alias({
|
||||
entries: [
|
||||
{find: 'shared', replacement: path.resolve('packages/shared/dist')},
|
||||
{find: 'shared', replacement: path.resolve('packages/shared/src')},
|
||||
// We inline both these helpers to improve the bundle size of the outline-react modules
|
||||
{
|
||||
find: isWWW
|
||||
? 'Outline/SelectionHelpers'
|
||||
: 'outline/SelectionHelpers',
|
||||
replacement: path.resolve(
|
||||
isWWW
|
||||
? 'packages/outline/dist/OutlineSelectionHelpers.dev'
|
||||
: 'packages/outline/dist/OutlineSelectionHelpers',
|
||||
'packages/outline/src/helpers/OutlineSelectionHelpers',
|
||||
),
|
||||
},
|
||||
{
|
||||
find: isWWW ? 'Outline/KeyHelpers' : 'outline/KeyHelpers',
|
||||
replacement: path.resolve(
|
||||
'packages/outline/src/helpers/OutlineKeyHelpers',
|
||||
),
|
||||
},
|
||||
{
|
||||
find: isWWW ? 'Outline/TextHelpers' : 'outline/TextHelpers',
|
||||
replacement: path.resolve(
|
||||
isWWW
|
||||
? 'packages/outline/dist/OutlineTextHelpers.dev'
|
||||
: 'packages/outline/dist/OutlineTextHelpers',
|
||||
'packages/outline/src/helpers/OutlineTextHelpers',
|
||||
),
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user