This package uses ESM (the wasm build uses EXPORT_ES6 and the import variable is used in dist/fatfs.js), however the package.json file doesn't contain "type": "module", so when I try to run this package it fails with:
/Users/cosmotherly/atlassian/src/nxkit/node_modules/js-fatfs/dist/fatfs.js:3
var _scriptDir = import.meta.url;
^^^^
SyntaxError: Cannot use 'import.meta' outside a module
So this PR sets "type": "module" in the package.json to fix it.
This package uses ESM (the wasm build uses
EXPORT_ES6
and theimport
variable is used indist/fatfs.js
), however thepackage.json
file doesn't contain"type": "module"
, so when I try to run this package it fails with:So this PR sets
"type": "module"
in thepackage.json
to fix it.