mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-22 12:42:14 +00:00
use simplified logic
This commit is contained in:
parent
99ca230bdb
commit
f5075eb3be
@ -59,7 +59,7 @@ fn project() -> Project {
|
|||||||
// and give that to externals and webpack ignores
|
// and give that to externals and webpack ignores
|
||||||
// to bundle the modules listed as external.
|
// to bundle the modules listed as external.
|
||||||
fs.readdirSync('node_modules')
|
fs.readdirSync('node_modules')
|
||||||
.filter(module => ['.bin'].indexOf(module) === -1)
|
.filter(module => module !== '.bin')
|
||||||
.forEach(mod => {
|
.forEach(mod => {
|
||||||
// External however,expects browser environment.
|
// External however,expects browser environment.
|
||||||
// To make it work in `node` target we
|
// To make it work in `node` target we
|
||||||
|
Loading…
x
Reference in New Issue
Block a user