Reorganize the import_js example

This commit is contained in:
Alex Crichton
2019-03-25 13:49:05 -07:00
parent 362777fc75
commit faf49c7d56
7 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world`
// example
import('./pkg/import_js')
import('./crate/pkg/import_js')
.catch(console.error);

View File

@ -14,7 +14,7 @@ module.exports = {
template: 'index.html'
}),
new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, ".")
crateDirectory: path.resolve(__dirname, "crate")
}),
// Have this example work in Edge which doesn't ship `TextEncoder` or
// `TextDecoder` at this time.