We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Notably, this feature is not yet stable in Node.js: https://nodejs.org/docs/latest/api/esm.html#import-attributes
import data from './data.json' with { type: 'json' };
Upstream issue: acornjs/acorn#1289
@what1s1ove said it best: 11ty/eleventy#3128 (comment)
The easiest workaround is to use require in ESM as @uncenter notes here 11ty/eleventy#3128 (comment):
require
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
The text was updated successfully, but these errors were encountered:
acorn
No branches or pull requests
Notably, this feature is not yet stable in Node.js: https://nodejs.org/docs/latest/api/esm.html#import-attributes
Upstream issue: acornjs/acorn#1289
@what1s1ove said it best: 11ty/eleventy#3128 (comment)
The easiest workaround is to use
require
in ESM as @uncenter notes here 11ty/eleventy#3128 (comment):The text was updated successfully, but these errors were encountered: