Skip to content

Commit

Permalink
loader: create typescript loader
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Jul 1, 2024
1 parent 6671f7e commit 9333ed4
Show file tree
Hide file tree
Showing 16 changed files with 3,852 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deps/swc/create-wasm.js
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')
`)
23 changes: 23 additions & 0 deletions deps/swc/package.json
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/*"
]
}
Loading

0 comments on commit 9333ed4

Please sign in to comment.