-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ESM all the things This PR changes all internal code (scripts/, test/, util/) to ESM. The built package for NPM now contains an ESM and CJS entrypoint. * Fix formatting * Add missing import * Fix remaining files * Install es-main package * Utilize es-main package * Import yargs hideBin() helper * Fix exports * Wrap yargs/executable script parts within esMain * Fix yargs * Fix imports * Move main function down in diff-features * Fix exports for diff-features * Fix release-notes script * Fix enumerate-features * review comments * Fix imports and exports * Fix imports/exports, cleanup code, cleanup diff, fix scripts * Fix import * Use import assertion for browser-specs (we're using NodeJS v16) * Fix ESLint * Fix unittest * Fix unittest (again) Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
- Loading branch information
1 parent
b73a46f
commit 9e00860
Showing
62 changed files
with
1,852 additions
and
928 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["@babel/plugin-syntax-import-assertions"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
/* This file is a part of @mdn/browser-compat-data | ||
* See LICENSE file for more information. */ | ||
|
||
/// <reference path="./types.d.ts"/> | ||
import { CompatData } from './types'; | ||
|
||
// This is necessary to have intellisense in projects which | ||
// import data from this package. | ||
declare const compatData: CompatData; | ||
export = compatData; | ||
export default CompatData; |
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.