-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs issue report from "getting-started/setup/optimizing-build-size.html" #16684
Comments
The types are there: But TS indeed cannot find them:
|
cc @filipsobol |
The problem is that these types are in a different folder than the code ( Option 1 is easier to implement, but it would introduce a lot of noise into the Option 2 requires much more work, as it requires adding an |
To keep it KISS I would vote for option 1. Do we know how many files on average would appear? |
Fix (generator): Change the path to the types in the `package.json` in `ts` templates. See ckeditor/ckeditor5#16684.
This problem has been fixed in |
Origin URL
https://ckeditor.com/docs/ckeditor5/latest/getting-started/setup/optimizing-build-size.html
Project version
42.0.0
Is the information outdated? How?
The mentioned import paths do not work with Typescript. See below.
Is there something missing in the guide? What is it?
The example code
does not work for Typescript builds because the
./dist
folders of all plugins do not contains the fileindex.d.ts
as the./src
folders do. So for the moment, then only import paths that would work areIs there anything else you would like to add?
No response
User agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
The text was updated successfully, but these errors were encountered: