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:
Dominic Gannaway
2021-06-16 16:08:01 +01:00
committed by acywatson
parent e87decc372
commit 2f6274737c
19 changed files with 42 additions and 144 deletions

View File

@ -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',
),
},
],