Skip to content

fix: use rollup to output js files#2916

Merged
UziTech merged 3 commits intomarkedjs:masterfrom
UziTech:umd-test
Aug 7, 2023
Merged

fix: use rollup to output js files#2916
UziTech merged 3 commits intomarkedjs:masterfrom
UziTech:umd-test

Conversation

@UziTech
Copy link
Copy Markdown
Member

@UziTech UziTech commented Aug 3, 2023

Marked version: v6.0.0

Description

Fix umd output by removing tsup and adding rollup

Add umd-test to check umd adds global marked

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marked-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2023 10:00pm

Copy link
Copy Markdown
Contributor

@calculuschild calculuschild left a comment

Choose a reason for hiding this comment

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

Lgtm

@UziTech
Copy link
Copy Markdown
Member Author

UziTech commented Aug 6, 2023

@styfle any issue with merging this?

Comment thread tsconfig.json
{
"compilerOptions": {
"target": "es2021",
"target": "es2022",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe we chose ES2021 to support Node.js 16

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Es 2021 doesn't support private methods that we already use. This still passes with node 16 with 2022.

Comment thread package.json
"rules": "node test/rules.js",
"bench": "npm run build && node test/bench.js",
"lint": "eslint --fix .",
"type-check": "tsc",
Copy link
Copy Markdown
Member

@styfle styfle Aug 7, 2023

Choose a reason for hiding this comment

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

Maybe I'm missing it, but where do we run tsc using the root tsconfig.json? Did you verify that a type error will fail the build?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes rollup handles running tsc and will fail to build on typescript error

@UziTech UziTech merged commit 610bc45 into markedjs:master Aug 7, 2023
@UziTech UziTech deleted the umd-test branch August 7, 2023 22:50
github-actions bot pushed a commit that referenced this pull request Aug 7, 2023
## [7.0.1](v7.0.0...v7.0.1) (2023-08-07)

### Bug Fixes

* use rollup to output js files ([#2916](#2916)) ([610bc45](610bc45))
Logiclayer1111 pushed a commit to Logiclayer1111/marked that referenced this pull request Apr 20, 2026
## [7.0.1](markedjs/marked@v7.0.0...v7.0.1) (2023-08-07)

### Bug Fixes

* use rollup to output js files ([#2916](markedjs/marked#2916)) ([d787f03](markedjs/marked@d787f03))
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.

6.0 broke the build

3 participants