Gathering detailed insights and metrics for smart-source-map-loader
Gathering detailed insights and metrics for smart-source-map-loader
Gathering detailed insights and metrics for smart-source-map-loader
Gathering detailed insights and metrics for smart-source-map-loader
npm install smart-source-map-loader
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
6 Stars
214 Commits
1 Forks
3 Watching
2 Branches
1 Contributors
Updated on 05 Aug 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-37.8%
79
Compared to previous day
Last week
-1.5%
526
Compared to previous week
Last month
13%
2,259
Compared to previous month
Last year
-24.9%
17,974
Compared to previous year
A Smart Source Map Loader for Webpack
This is a module which will read any existing source maps on a file and pass them to Webpack. In this way compiled code can be bundled with source maps to the original source files.
It is similar in concept to the source-map-loader
module, but with several major usability improvements. These improvements mainly center around the issue where that module does not correctly resolve the original source paths in most cases, leading to conflicting or wrong paths in the resulting source maps. In order to solve these and several other minor issues, a smarter loader had to be written, and so this loader was created.
Requires Webpack 4+.
Just add the dependency with npm:
1npm i -D smart-source-map-loader
Or yarn:
1yarn add -D smart-source-map-loader
And configure it to parse your source files (.js
and .mjs
in this example):
1module.exports = { 2 module: { 3 rules: [ 4 { 5 test: /\.m?js$/i, 6 use: ['smart-source-map-loader'], 7 enforce: 'pre' 8 } 9 ] 10 } 11};
For performance reasons you may wish to exclude node_modules
in your setup.
If you do include them though they will have the correct path in the source map.
If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
Copyright (c) 2018-2024 Alexander O'Mara
Licensed under the Mozilla Public License, v. 2.0.
If this license does not work for you, feel free to contact me.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
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
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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