-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-introduce main and types fields in package.json (#243)
* Re-introduce main and types fields in package.json TypeScript with "moduleResolution": "node" won't look at at the "exports" field, so we add main and types for backward compatibility Ref #242 * Use explicit mjs file extensions in build outputs, update jav2 for ESM/CJS interoperability.
- Loading branch information
Showing
5 changed files
with
16 additions
and
12 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
# production | ||
/build | ||
/demo/main-browser-esm.js* | ||
/demo/main-browser-esm.mjs* | ||
|
||
# misc | ||
.DS_Store | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ <h1>住所正規化デモ</h1> | |
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"></script> | ||
<script type="module"> | ||
import { normalize } from './main-browser-esm.js'; | ||
import { normalize } from './main-browser-esm.mjs'; | ||
import htm from 'https://unpkg.com/[email protected]/dist/htm.module.js?module'; | ||
const html = htm.bind(React.createElement); | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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