forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6671f7e
commit 9333ed4
Showing
16 changed files
with
3,852 additions
and
0 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,8 @@ | ||
const fs = require("fs") | ||
const base64 = fs.readFileSync("./deps/swc/wasm-web_bg.wasm").toString('base64') | ||
fs.writeFileSync("./deps/swc/wasm-web_bg.wasm.js", `'use strict' | ||
const { Buffer } = require('node:buffer') | ||
module.exports = Buffer.from('${base64}', 'base64') | ||
`) |
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,23 @@ | ||
{ | ||
"name": "@swc/wasm-web", | ||
"collaborators": [ | ||
"강동윤 <[email protected]>" | ||
], | ||
"description": "wasm module for swc", | ||
"version": "1.6.6", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/swc-project/swc.git" | ||
}, | ||
"files": [ | ||
"wasm-web_bg.wasm", | ||
"wasm-web.js", | ||
"wasm-web.d.ts" | ||
], | ||
"module": "wasm-web.js", | ||
"types": "wasm-web.d.ts", | ||
"sideEffects": [ | ||
"./snippets/*" | ||
] | ||
} |
Oops, something went wrong.