mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 16:26:33 +00:00
No longer error for npm dependencies with web (#2103)
* No longer error for npm dependencies with web * Fixing build error
This commit is contained in:
@ -3013,10 +3013,10 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
|
||||
fn process_package_json(&mut self, path: &Path) -> Result<(), Error> {
|
||||
if !self.config.mode.nodejs() && !self.config.mode.bundler() {
|
||||
if self.config.mode.no_modules() {
|
||||
bail!(
|
||||
"NPM dependencies have been specified in `{}` but \
|
||||
this is only compatible with the `bundler` and `nodejs` targets",
|
||||
this is incompatible with the `no-modules` target",
|
||||
path.display(),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user