diff --git a/package.json b/package.json index 66f7886..e22f09e 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "test": "uvu src .+\\.test\\.mjs", "test:ci": "npm test && npm run lint -- --max-warnings 0", "lint": "eslint src/core/*.mjs", - "scrape": "node --experimental-import-meta-resolve src/property-scraper.mjs", + "scrape": "node src/property-scraper.mjs", "prepack": "npm run build" }, "devDependencies": { diff --git a/src/property-scraper.mjs b/src/property-scraper.mjs index a5b18de..332a118 100644 --- a/src/property-scraper.mjs +++ b/src/property-scraper.mjs @@ -1,8 +1,6 @@ import fs from 'node:fs/promises'; -const { css } = await import.meta.resolve('@mdn/browser-compat-data') - .then((moduleResolution) => new URL(moduleResolution).pathname) - .then(fs.readFile) +const { css } = await fs.readFile(new URL(import.meta.resolve('@mdn/browser-compat-data'))) .then(JSON.parse); const isStandardProperty = (name) => (property) => Boolean(