diff --git a/README.md b/README.md index d5c8e4a..d264270 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,16 @@ Handlebars Parser The official Handlebars.js parser. This package contains the definition for for the Handlebars language AST, and the parser for parsing into that AST. + + +Notes +----- + +If consumers of this package or their dependants get following error message: + +``` +require() of ES Module .../.pnpm/@handlebars+parser@file+..+handlebars-parser/node_modules/@handlebars/parser/dist/cjs/index.js not supported. +Instead change the require of index.js in null to a dynamic import() which is available in all CommonJS modules. +``` + +then the solution is to bump [node >= 20.19](https://nodejs.org/en/blog/release/v20.19.0/). \ No newline at end of file diff --git a/package.json b/package.json index 20c69f4..384aa4a 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ }, "packageManager": "pnpm@9.12.2", "engines": { - "node": "^20.18.0" + "node": "^20.19.0" }, "publishConfig": { "access": "public",