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

Markdown parser lib change, snarkdown instead of marked. Build tests with babel instead of ts-node. #873

Merged
merged 2 commits into from
Mar 9, 2022

Conversation

plesiecki
Copy link
Collaborator

@plesiecki plesiecki commented Mar 8, 2022

  • Markdown parser lib change, snarkdown instead of marked.
  • Build tests with babel instead of ts-node.

#845

https://bundlephobia.com/package/marked@4.0.12 vs https://bundlephobia.com/package/snarkdown@2.0.0

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

size-limit report 📦

Path Size
build/public/main.js 1.9 MB (-2.07% 🔽)
build/public/polyfills.es5.js 42.51 KB (-0.01% 🔽)
build/public/dnd.es5.js 4.56 KB (0%)

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

if (!extendedDescription) {
return <MarkdownNode markdown={description || STRINGS.noDescription} />;
return <React.Suspense fallback={Loader}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works and how!

@plesiecki plesiecki marked this pull request as ready for review March 8, 2022 15:33
@plesiecki plesiecki mentioned this pull request Mar 8, 2022
12 tasks
// @ts-ignore
import("../../lib/polyfill/drag-drop-polyfill.css")
import(/* webpackChunkName: "dnd-css" */ "../../lib/polyfill/drag-drop-polyfill.css")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume these comments are meaningful for webpack? Will something horribly broke if someone removes them by accident?

Copy link
Collaborator Author

@plesiecki plesiecki Mar 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sets name for new chunk, otherwise webpack chunk index number as its name. It should be good without thoes comments.

Copy link
Contributor

@adrianmroz-allegro adrianmroz-allegro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move button to Suspense boundary.

@plesiecki
Copy link
Collaborator Author

Move button to Suspense boundary.

Done 👍

Copy link
Contributor

@adrianmroz-allegro adrianmroz-allegro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conditional approve. Code is good, let's discuss with team if UX is acceptable.

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@plesiecki plesiecki changed the title Dynamically import markdown-node module Markdown parser lib change, snarkdown instead of marked. Mar 8, 2022
@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@plesiecki plesiecki force-pushed the marked branch 4 times, most recently from 882391f to 5c982f6 Compare March 9, 2022 07:39
@github-actions
Copy link

github-actions bot commented Mar 9, 2022

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

extensions: [".ts", ".tsx", ".js", ".jsx"],
ignore: [
function(filePath) {
return filePath.includes("node_modules") && !filePath.includes("snarkdown")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default ignore is like [/node_modules/]. In the meantime, ESM module was imported under snarkdown and I had to treat it with a transpilation. But I re-checked this setting and it seems it's now all good without it 🤔

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

Copy link
Contributor

@adrianmroz-allegro adrianmroz-allegro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

✅ Deployed successfully to: https://turnilo-marked-gmbbyye42a-ew.a.run.app

@plesiecki plesiecki merged commit 795774b into master Mar 9, 2022
@plesiecki plesiecki deleted the marked branch March 9, 2022 11:13
@plesiecki plesiecki changed the title Markdown parser lib change, snarkdown instead of marked. Markdown parser lib change, snarkdown instead of marked. Build tests with babel instead of ts-node. Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants