Skip to content
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

Use monaco-editor node package instead of CDN for offline editing #442

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

cjb873
Copy link
Contributor

@cjb873 cjb873 commented Dec 4, 2024

As mentioned by #368, the editor should be able to work offline. This PR adds monaco-editor as a dev dependency, and simlinks it into the public directory, so that the editor will work offline. It will continue to use the CDN if there is an internet connection.

Edit:

The github action for pull requests was running with pnpm version 8, while the version of pnpm listed in package.json is 9.1.4. This caused a discrepancy when running pnpm run lint on a local machine versus on the github action, as on github it errors. I have also updated the workflow file to address this.

@cjb873 cjb873 marked this pull request as draft December 5, 2024 00:02
@cjb873 cjb873 marked this pull request as ready for review December 5, 2024 01:00
@AykutSarac
Copy link
Owner

  • Doesn't it increase the bundle size? Did we consider other alternatives?
  • Does it work in production, since there won't be a node_modules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants