-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to ESM modules and bump version of Reffy (#659)
This replaces calls to `require` with `import` syntaxes. Also taking this opportunity to fix the `study-backrefs.js` CLI, which was still expecting a results format that got changed a long time ago. Note: We will probably want to merge these individual CLIs into the main strudy CLI at some point.
- Loading branch information
Showing
27 changed files
with
762 additions
and
715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
module.exports = { | ||
studyCrawl: require("./src/lib/study-crawl").studyCrawl, | ||
studyWebIdl: require("./src/lib/study-webidl").studyWebIdl, | ||
generateReport: require("./src/lib/generate-report").generateReport, | ||
}; | ||
import studyCrawl from './src/lib/study-crawl.js'; | ||
import studyWebIdl from './src/lib/study-webidl.js'; | ||
import generateReport from './src/lib/generate-report.js'; | ||
|
||
export { studyCrawl, studyWebIdl, generateReport }; | ||
|
||
const strudy = { studyCrawl, studyWebIdl, generateReport }; | ||
export default strudy; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.