Skip to content

Fix the HTML mode#63

Merged
DmitrySharabin merged 1 commit intomainfrom
fix-html-mode
Jan 22, 2025
Merged

Fix the HTML mode#63
DmitrySharabin merged 1 commit intomainfrom
fix-html-mode

Conversation

@DmitrySharabin
Copy link
Copy Markdown
Member

@DmitrySharabin DmitrySharabin commented Jan 22, 2025

  • Move IS_NODEJS to util
  • Make the diff package available both in Node.js and the browser

After adding the diff package to improve the fail screen, we broke the HTML mode (see the Color.js testsuite as an example): it fails with the Uncaught (in promise) TypeError: Failed to resolve module specifier "diff". Relative references must start with either "/", "./", or "../" error. This PR fixes it.

- Move `IS_NODEJS` to `util`
- Make the `diff` package available both in Node.js and the browser
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 22, 2025

Deploy Preview for h-test ready!

Name Link
🔨 Latest commit e8f6021
🔍 Latest deploy log https://app.netlify.com/sites/h-test/deploys/67910564c51018000819ce96
😎 Deploy Preview https://deploy-preview-63--h-test.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DmitrySharabin DmitrySharabin merged commit 4e5ea96 into main Jan 22, 2025
@DmitrySharabin DmitrySharabin deleted the fix-html-mode branch January 22, 2025 15:35
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