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
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MPL-2.0 License
7 Stars
214 Commits
1 Forks
2 Watchers
2 Branches
1 Contributors
Updated on Jan 10, 2025
Latest Version
1.3.4
Package Id
smart-source-map-loader@1.3.4
Unpacked Size
67.27 kB
Size
19.32 kB
File Count
15
NPM Version
10.8.1
Node Version
20.16.0
Published on
Aug 04, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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