Add frontend tests and other stuff
This commit is contained in:
parent
d28e765e39
commit
642dd8a80c
26 changed files with 730 additions and 85 deletions
8
frontend/index.js
Normal file
8
frontend/index.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// Note that a dynamic `import` statement here is required due to
|
||||
// webpack/webpack#6615, but in theory `import { greet } from './pkg';`
|
||||
// will work here one day as well!
|
||||
const rust = import('./pkg');
|
||||
|
||||
rust
|
||||
.then(m => m.greet('Paul!'))
|
||||
.catch(console.error);
|
||||
Loading…
Add table
Add a link
Reference in a new issue