Skip to content

Commit ab00462

Browse files
committed
chore(ci): check playground in wasi test (#15824)
1 parent 934da4c commit ab00462

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ jobs:
144144
if: steps.filter.outputs.src == 'true'
145145
run: |
146146
rustup target add wasm32-wasip1-threads
147+
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/playground
147148
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/parser
148149
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/transform
149150
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/minify

napi/playground/playground.wasi-browser.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,4 @@ const {
5757
})
5858
export default __napiModule.exports
5959
export const Severity = __napiModule.exports.Severity
60-
61-
import { jsonParseAst } from "../parser/src-js/wrap.js"
62-
63-
export function Oxc() {
64-
const oxc = new __napiModule.exports.Oxc();
65-
return new Proxy(oxc, {
66-
get(_target, p, _receiver) {
67-
if (p === 'ast') {
68-
return jsonParseAst(oxc.astJson);
69-
}
70-
const value = oxc[p];
71-
if (typeof value === 'function') {
72-
return value.bind(oxc);
73-
}
74-
return value;
75-
}
76-
})
77-
}
78-
60+
export const Oxc = __napiModule.exports.Oxc

0 commit comments

Comments
 (0)