Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: migrate to ESM only#622

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
keithamus merged 2 commits intogithub:mainfrom43081j:esm-only
Mar 19, 2025
Merged

feat: migrate to ESM only#622

keithamus merged 2 commits intogithub:mainfrom43081j:esm-only
Mar 19, 2025

Conversation

43081j
Copy link
Contributor

All LTS versions of node will soon supportrequire(esm) as18.x will fall out of long term support imminently

ESLint also already loads plugins via a dynamic import, so if we make this change it means the only people affected are those writing flat configs as CommonJSin Node <20

Depends on#621 since this makes the lint rules apply again (they currently don't in main)

Moves the repo to be of `type: "module"` (i.e. ESM).ESLint already uses a dynamic import to load plugins, so this will onlyaffect CommonJS users with flat config in Node <20.
@43081j43081j requested a review froma team as acode ownerMarch 19, 2025 12:51
Copy link
Contributor

@keithamuskeithamus left a comment

Choose a reason for hiding this comment

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

This LGTM.

@keithamuskeithamus merged commit139bf63 intogithub:mainMar 19, 2025
2 checks passed
@@ -0,0 +1,5 @@
const svgElementAttributes = require('svg-element-attributes')
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

This file is unfortunate but we have to jump back into cjs in order to load these two JSON files

If we use animport , we need to use import attributes (node 20)

One day when we bump the minimum node version, we should move this back into esm

@43081j43081j deleted the esm-only branchMarch 19, 2025 14:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@keithamuskeithamuskeithamus approved these changes

@manuelpuyolmanuelpuyolAwaiting requested review from manuelpuyolmanuelpuyol is a code owner automatically assigned from github/web-systems-reviewers

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@43081j@keithamus

[8]ページ先頭

©2009-2025 Movatter.jp