Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support CJS output for wasm build (#643)
- Loading branch information
1 parent
08efeeb
commit b543fe7
Showing
5 changed files
with
170 additions
and
110 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
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,5 +1,6 @@ | ||
*.d.ts | ||
*.wasm | ||
*.cjs | ||
package.json | ||
README.md | ||
browserslistToTargets.js | ||
|
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,6 @@ | ||
/** | ||
* @see https://github.com/evanw/esbuild/issues/1633 | ||
*/ | ||
export const import_meta_url = | ||
typeof document === 'undefined' ? new (require('url'.replace('', '')).URL)('file:' + __filename).href : | ||
(document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href) |
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