Installations
npm install babel-plugin-transform-system-import-commonjs
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.9.1
NPM Version
3.10.8
Score
61
Supply Chain
81.4
Quality
73.4
Maintenance
25
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
mkyurchev
Download Statistics
Total Downloads
28,283
Last Day
1
Last Week
2
Last Month
14
Last Year
165
GitHub Statistics
7 Commits
2 Forks
3 Watching
2 Branches
1 Contributors
Bundle Size
367.73 kB
Minified
96.26 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.3
Package Id
babel-plugin-transform-system-import-commonjs@1.0.3
Size
2.21 kB
NPM Version
3.10.8
Node Version
6.9.1
Total Downloads
Cumulative downloads
Total Downloads
28,283
Last day
0%
1
Compared to previous day
Last week
-81.8%
2
Compared to previous week
Last month
-12.5%
14
Compared to previous month
Last year
-32.4%
165
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
2
babel-plugin-transform-system-import-commonjs
Babel plugin that transforms ES2015 System.import into CommonJS require.
Deprecation notice
** Since import() proposal was accepted, System.import
function now is obsolete and this plugin is not recommended to use in new projects. Please use import()
function with babel-plugin-transform-import-commonjs instead. **
How this works
This plugin transforms
1var myModule = "./path/to/myModule"; 2 3System.import(myModule).then(function (module) { 4 console.log(module); 5});
to
1var myModule = "./path/to/myModule"; 2 3new Promise(function(resolve) { 4 resolve(require(myModule)); 5}.bind(this)).then(function (module) { 6 console.log(module); 7});
Requirements
You need support for Promise, use polyfill if needed.
Installation
1$ npm install babel-plugin-transform-system-import-commonjs
Usage
Via .babelrc
(Recommended)
.babelrc
1{ 2 "plugins": ["transform-system-import-commonjs"] 3}
Via CLI
1$ babel --plugins transform-system-import-commonjs script.js
Via Node API
1require("babel-core").transform("code", { 2 plugins: ["transform-system-import-commonjs"] 3});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
project is archived
Details
- Warn: Repository is archived.
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
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/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