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

fix(webpack): give reveal.js's marked.js a 'exports' variable #4114

Merged

Conversation

davidmehren
Copy link
Member

Component/Part

Webpack config

Description

I really don't know why this breaks only in a production build, but this
evil hack makes the script work again.
Closes #3862

Steps

  • Added implementation
  • Added changelog snippet
  • I read the contribution documentation and
    made sure that:
    • My commits are signed-off to accept the DCO.
    • This PR targets the correct branch: master for 1.x & docs, develop for 2.x

Related Issue(s)

@davidmehren davidmehren added the type: bug Something isn't working label May 28, 2023
@davidmehren davidmehren added this to the Version 1.x milestone May 28, 2023
@davidmehren davidmehren self-assigned this May 28, 2023
I really don't know why this breaks only in a production build, but this
 evil
 hack makes the script work again.

 Closes #3862

Signed-off-by: David Mehren <git@herrmehren.de>
@davidmehren davidmehren force-pushed the 3862-speaker-notes-are-not-rendered-on-speaker-mode branch from c78776d to f9796fb Compare May 28, 2023 16:27
Copy link
Member

@mrdrogdrog mrdrogdrog left a comment

Choose a reason for hiding this comment

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

>.<

@mrdrogdrog mrdrogdrog merged commit b1928b7 into master May 28, 2023
3 checks passed
@mrdrogdrog mrdrogdrog deleted the 3862-speaker-notes-are-not-rendered-on-speaker-mode branch May 28, 2023 17:16
davidmehren added a commit that referenced this pull request Jun 4, 2023
#4114
did not properly fix the missing speaker notes.

It turns out that by just excluding
reveal.js/plugin/markdown/marked.js
from esbuild processing, we can stop invalid JS from being generated.

Signed-off-by: David Mehren <git@herrmehren.de>
davidmehren added a commit that referenced this pull request Jun 4, 2023
#4114
did not properly fix the missing speaker notes.

It turns out that by just excluding
reveal.js/plugin/markdown/marked.js
from esbuild processing, we can stop invalid JS from being generated.

Signed-off-by: David Mehren <git@herrmehren.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants