Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 70f6ae3

Browse files
author
Je
committed
v0.2.18
1 parent 849ee79 commit 70f6ae3

File tree

6 files changed

+10
-17
lines changed

6 files changed

+10
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The React Framework in [Deno](https://deno.land), inspired by [Next.js](https://
2323

2424
### Installation
2525
```bash
26-
deno install -A -f -n aleph https://deno.land/x/[email protected].17/cli.ts
26+
deno install -A -f -n aleph https://deno.land/x/[email protected].18/cli.ts
2727
```
2828

2929
### Usage

egg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aleph",
3-
"version": "0.2.17",
3+
"version": "0.2.18",
44
"description": "The React Framework in Deno.",
55
"repository": "https://github.com/postui/aleph.js",
66
"entry": "./mod.ts",
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1+
import sass from '../../plugins/sass.ts'
2+
import wasm from '../../plugins/wasm.ts'
3+
14
export default {
2-
plugins: [{
3-
test: /.wasm$/,
4-
transform(content: Uint8Array) {
5-
return {
6-
code: `
7-
const wasmCode = new Uint8Array([${content.join(',')}])
8-
const wasmModule = new WebAssembly.Module(wasmCode)
9-
const wasmInstance = new WebAssembly.Instance(wasmModule)
10-
export default wasmInstance.exports
11-
`,
12-
loader: 'js'
13-
}
14-
}
15-
}]
5+
plugins: [sass, wasm]
166
}

examples/wasm-loader-plugin/pages/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'https://esm.sh/react'
22
import wasm from './42.wasm'
3+
import './style.sass'
34

45
export default function Home() {
56
return (
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$head: 300px;
2+
h1 { font-size: $head; }

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '0.2.17'
1+
export const version = '0.2.18'

0 commit comments

Comments
 (0)