-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: add
universal
export to root (#57)
* fix: add `universal` export to root * Update package.json * Update package.json * Update universal.js * Update universal.js * Update universal.js Co-authored-by: 唯然 <[email protected]> * typos Co-authored-by: 唯然 <[email protected]>
- Loading branch information
1 parent
69e1840
commit 6b5fc8b
Showing
2 changed files
with
11 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -19,7 +19,8 @@ | |
"lib", | ||
"conf", | ||
"LICENSE", | ||
"dist" | ||
"dist", | ||
"universal.js" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
|
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,9 @@ | ||
// Jest (and probably some other runtimes with custom implementations of | ||
// `require`) doesn't support `exports` in `package.json`, so this file is here | ||
// to help them load this module. Note that it is also `.js` and not `.cjs` for | ||
// the same reason - `cjs` files requires to be loaded with an extension, but | ||
// since Jest doesn't respect `module` outside of ESM mode it still works in | ||
// this case (and the `require` in _this_ file does specify the extension). | ||
|
||
// eslint-disable-next-line no-undef | ||
module.exports = require("./dist/eslintrc-universal.cjs"); |