Fix tesseract.js being part of the common chunk (#11571)
* Fix tesseract.js being part of the common chunk Besides being 620 KB large, it also causes a modules-related runtime error in production... * Fix code style issue * Fix modules error
This commit is contained in:
parent
28636f43e4
commit
dfe6059889
3 changed files with 24 additions and 12 deletions
|
@ -133,3 +133,7 @@ export function ListAdder () {
|
|||
export function Search () {
|
||||
return import(/*webpackChunkName: "features/search" */'../../search');
|
||||
}
|
||||
|
||||
export function Tesseract () {
|
||||
return import(/*webpackChunkName: "tesseract" */'tesseract.js');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue