mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 08:30:33 +08:00
Move list feature into a separate package (#1239)
* wip * fix build issues * fix imports * bump version
This commit is contained in:
@ -41,11 +41,13 @@ if (isClean) {
|
||||
fs.removeSync(path.resolve('./packages/lexical/dist'));
|
||||
fs.removeSync(path.resolve('./packages/lexical-react/dist'));
|
||||
fs.removeSync(path.resolve('./packages/lexical-helpers/dist'));
|
||||
fs.removeSync(path.resolve('./packages/lexical-list/dist'));
|
||||
fs.removeSync(path.resolve('./packages/lexical-yjs/dist'));
|
||||
}
|
||||
|
||||
const wwwMappings = {
|
||||
lexical: 'Lexical',
|
||||
'lexical-list': 'LexicalList',
|
||||
'react-dom': 'ReactDOMComet',
|
||||
'@lexical/yjs': 'LexicalYjs',
|
||||
};
|
||||
@ -90,6 +92,7 @@ const externals = [
|
||||
// modules that use Stylex to www (the babel plugin on www
|
||||
// is different to that of the OSS version).
|
||||
'lexical',
|
||||
'@lexical/list',
|
||||
'@lexical/yjs',
|
||||
'react-dom',
|
||||
'react',
|
||||
@ -307,6 +310,12 @@ build(
|
||||
path.resolve(`./packages/lexical/dist/${getFileName('Lexical')}`),
|
||||
);
|
||||
|
||||
build(
|
||||
'Lexical List',
|
||||
path.resolve('./packages/lexical-list/src/index.js'),
|
||||
path.resolve(`./packages/lexical-list/dist/${getFileName('LexicalList')}`),
|
||||
);
|
||||
|
||||
lexicalNodes.forEach((module) => {
|
||||
build(
|
||||
`Lexical Core Nodes - ${module}`,
|
||||
|
Reference in New Issue
Block a user