File tree 7 files changed +5
-5
lines changed
7 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ members = [
66
66
" examples/fetch" ,
67
67
" examples/guide-supported-types-examples" ,
68
68
" examples/hello_world" ,
69
- " examples/import_js" ,
69
+ " examples/import_js/crate " ,
70
70
" examples/julia_set" ,
71
71
" examples/paint" ,
72
72
" examples/performance" ,
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
// For more comments about what's going on here, check out the `hello_world`
2
2
// example
3
- import ( './pkg/import_js' )
3
+ import ( './crate/ pkg/import_js' )
4
4
. catch ( console . error ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module.exports = {
14
14
template : 'index.html'
15
15
} ) ,
16
16
new WasmPackPlugin ( {
17
- crateDirectory : path . resolve ( __dirname , ". " )
17
+ crateDirectory : path . resolve ( __dirname , "crate " )
18
18
} ) ,
19
19
// Have this example work in Edge which doesn't ship `TextEncoder` or
20
20
// `TextDecoder` at this time.
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ For example if you're working with this JS file:
13
13
14
14
``` js
15
15
// defined-in-js.js
16
- {{#include ../ ../ ../ examples/ import_js/ defined- in - js .js }}
16
+ {{#include ../ ../ ../ examples/ import_js/ crate / defined- in - js .js }}
17
17
```
18
18
19
19
you can use it in Rust with:
20
20
21
21
``` rust
22
- {{#include .. / .. / .. / examples / import_js / src / lib . rs}}
22
+ {{#include .. / .. / .. / examples / import_js / crate / src / lib . rs}}
23
23
```
24
24
25
25
You can also [ explore the full list of ways to configure imports] [ attr ]
You can’t perform that action at this time.
0 commit comments