mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-27 10:52:39 +03:00
6edb40a807
This commit implements [RFC 8], which enables transitive and transparent dependencies on NPM. The `module` attribute, when seen and not part of a local JS snippet, triggers detection of a `package.json` next to `Cargo.toml`. If found it will cause the `wasm-bindgen` CLI tool to load and parse the `package.json` within each crate and then create a merged `package.json` at the end. [RFC 8]: https://github.com/rustwasm/rfcs/pull/8
15 lines
317 B
JSON
15 lines
317 B
JSON
{
|
|
"scripts": {
|
|
"build": "webpack -p",
|
|
"serve": "webpack-dev-server -p"
|
|
},
|
|
"devDependencies": {
|
|
"@wasm-tool/wasm-pack-plugin": "0.2.7",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"text-encoding": "^0.7.0",
|
|
"webpack": "^4.29.4",
|
|
"webpack-cli": "^3.1.1",
|
|
"webpack-dev-server": "^3.1.0"
|
|
}
|
|
}
|