Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
karma-rollup-preprocessor
Advanced tools
Preprocessor to bundle ES6 modules fly with rollup.
This preprocessor is mainly used to bundle your spec entry point but might be useful in other cases as well.
npm install karma-rollup-preprocessor --save-dev
The rollupPreprocessor
configuration is optional. (You'll need to install more dependencies). It takes two keys: rollup
and
bundle
.
rollup
is the configuration object for rollup
(See rollup.rollup for more details).
bundle
is the configuration object used when generating the bundle (See bundle.generate for more details)
Notice this is preprocessor and does not write a file or return the bundle, only the content of the processed file gets changed.
So when adding the sourceMaps
options, inline
is the only logical value.
// karma.conf.js
module.exports = function (config) {
config.set({
preprocessors: {
'test/main.js': ['rollup']
},
rollupPreprocessor: {
rollup: {
plugins: [
require('rollup-plugin-babel')({
presets: [
require('babel-preset-es2015-rollup')
]
})
]
},
bundle: {
sourceMap: 'inline'
}
}
});
};
[2.0.1] - 2016-01-11
FAQs
Karma preprocessor to bundle ES modules using Rollup
The npm package karma-rollup-preprocessor receives a total of 52,693 weekly downloads. As such, karma-rollup-preprocessor popularity was classified as popular.
We found that karma-rollup-preprocessor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.