Skip to content

fix: migrate to ES6 module syntax in eleventy configuration#57

Merged
nsunami merged 1 commit into
mainfrom
nami/convert-to-type-module
Mar 28, 2026
Merged

fix: migrate to ES6 module syntax in eleventy configuration#57
nsunami merged 1 commit into
mainfrom
nami/convert-to-type-module

Conversation

@nsunami

@nsunami nsunami commented Dec 16, 2025

Copy link
Copy Markdown
Owner

This PR fixes the warning resulting from the project being in CommonJS. Migrated to ES6.

(node:77605) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/nami/dev/nami-writes/content/blog/blog.11tydata.js is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/nami/dev/nami-writes/package.json.
(Use `node --trace-warnings ...` to show where the warning was created)

@github-actions

Copy link
Copy Markdown

Preview deployment available at https://pr57-blog.namisunami.com

@nsunami
nsunami merged commit 5d2beeb into main Mar 28, 2026
1 check passed
@nsunami
nsunami deleted the nami/convert-to-type-module branch March 28, 2026 19:55
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.

1 participant