wizer | The WebAssembly Pre-Initializer | Binary Executable Format library
kandi X-RAY | wizer Summary
kandi X-RAY | wizer Summary
Don't wait for your Wasm module to initialize itself, pre-initialize it! Wizer instantiates your WebAssembly module, executes its initialization function, and then snapshots the initialized state out into a new WebAssembly module. Now you can use this new, pre-initialized WebAssembly module to hit the ground running, without making your users wait for that first-time set up code to complete.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wizer
wizer Key Features
wizer Examples and Code Snippets
Community Discussions
Trending Discussions on wizer
QUESTION
I'm using a self made component library to share components between my projects. The problem is that even after using the Authoring libraries guide by webpack
it keeps including those dependencies in my main build and I am out of ideas on what setting that this is caused by...
Build analysis (when bundling my app)
Here you can see the node_modules
and wizer-components/node_modules
. Including react-dom
twice (and others)
Build analysis (of a component)
As you can see no node_modules are bundled here...
Setting files
Because I can't find where the issue lies I have created gists of my config files:
webpack.config.js
(of component library)webpack.config.production.js
(of app)
Setup
Just as info, I'm using a monorepo setup with lerna
to npm link
the dependency of (wizer-components) without the need to push it to npm
as a module. Could this be an issue in where webpack thinks that it needs to re-add the react
(and others)?
ANSWER
Answered 2017-Aug-22 at 18:48After a total of 4 days of trying to make this work (was doing this before I asked the question), I managed to solve it (FINALLY)!
The issue was with lerna / NPM link and dependency resolving, see handy links at the bottom of this answer.
I fixed it by doing the following steps:
- Moving the
dependencies
(react
,react-dom
) topeerDependencies
in thewizer-components
(my component library)package.json
file - Removing all my
node_modules
folders (app and component library) - Running
$ lerna bootstrap
to re-download mynode_modules
- Removing my build process of my component library (I build these when I build my app)
- Changing my
webpack.config.production.js
in these key areas
(did a picture because it wouldn't format it right on here -_-
Helpful links (also look at the comments):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wizer
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page