Installations
npm install wasm-webpack-sources
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=8.0.0
Node Version
10.8.0
NPM Version
6.3.0
Score
75.6
Supply Chain
90.5
Quality
75.5
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
Rust (58.47%)
JavaScript (41.53%)
Developer
jevancc
Download Statistics
Total Downloads
2,901
Last Day
1
Last Week
6
Last Month
23
Last Year
181
GitHub Statistics
6 Stars
117 Commits
2 Watching
5 Branches
1 Contributors
Bundle Size
56.37 kB
Minified
13.57 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.2.13
Package Id
wasm-webpack-sources@0.2.13
Unpacked Size
1.27 MB
Size
353.51 kB
File Count
137
NPM Version
6.3.0
Node Version
10.8.0
Total Downloads
Cumulative downloads
Total Downloads
2,901
Last day
0%
1
Compared to previous day
Last week
-60%
6
Compared to previous week
Last month
228.6%
23
Compared to previous month
Last year
-28.7%
181
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
wasm-webpack-sources
The rust implementation of webpack-sources
with WebAssembly Node.js API.
Usage
1. With webpack-cli
(Recommend)
First, install webpack-cli
, webpack
, and wasm-webpack-sources
in your local project:
1npm install webpack wasm-webpack-sources https://github.com/jevancc/webpack-cli
After the installation, you can try the experimental WebAssembly package with argument -r wasm-webpack-sources
:
1npx webpack -r wasm-webpack-sources
When the module is successfully loaded, you will see the following message:
Override:
<webpack-sources resolve> -> <wasm-webpack-sources resolve>
You are now using experimental package `wasm-webpack-sources`
2. With cloned webpack repository
You can install this package with yarn under an alias to try it with your local Webpack:
1yarn add webpack-sources@npm:wasm-webpack-sources
This command will replace webpack-soruces
with wasm-webpack-sources
in node_modules
.
Important Notice
- The size of file is stored in 32bit signed integer, hence this package does not support files larger than 2GB.
- In order to use this package you will need Node.js version 8 or above.
FAQ
1. Do I need to modify webpack or my plugins to try this package?
No. The API of this package is 100% compatible with the JS package webpack-sources
. You just need to override the requiring of webpack-sources
with wasm-webpack-sources
and everything can work perfectly.
2. How you handle deallocation?
There is no deallocation in current release.
The deallocation process invloves extra works to be made in webpack and plugins which use and create objects with webpack-sources
. So far, these works haven't be done so it may impose the potential risk of memory leak.
Be careful when you are using it in the cases where process is not exited after the compilation such as dev-server
.
Build
The released npm package and this repository contains the latest WebAssembly binary, so there is no need for you to build the binary yourself to use it unless you want to test it.
This package is written in Rust with wasm-bindgen
. To build the WebAssembly on your own, you need to install the requirements:
- Rust nightly
wasm32-unknown-unknown
targetwasm-bindgen
You can follow the guide of wasm-bindgen
to setup everything you need.
After the enviroment is set-up, you can build the WebAssembly binary with the npm script:
1npm run build:wasm
This script will place the binary and JS interface generated by wasm-bindgen
in wasm-api/build
.
Reference
- webpack / webpack-sources
- webpack / webpack
No vulnerabilities found.
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
binaries present in source code
Details
- Warn: binary detected: wasm-api/build/webpack_sources_bg.wasm:1
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.5
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More