Skip to content

Commit c3597a6

Browse files
committed
feat(wasm): add feature to convert Rust into Wasm
💪 reimplement cargo.js to be synchronous because jest doesn't support async transform 📋 some function are copied from ts-jest while the others are from rollup-plugin-rust ⚠️ it must generate cjs module, not es6 module (jest only accept cjs module) 🙄 default options are same as rollup-plugin-rust 🔭 see test/fixtures/**/jest.config.js for how to set the options ✍️ refactor the project structure to make it easier to be traversed
1 parent 2ea44b9 commit c3597a6

19 files changed

+377
-186
lines changed

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare interface RsJest extends jest.Transformer {
2+
createTransformer(options?: any): jest.Transformer;
3+
}
4+
5+
export = RsJest;

0 commit comments

Comments
 (0)