Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
rollup-plugin-includepaths
Advanced tools
Rollup plugin to use relative paths in your project files
Let you use relative paths in your import directives, like this:
// from src/lib/one/foo.js
import { Foo } from 'one/foo';
// from src/other/two/bar.js
import { Bar } from 'two/bar';
In your rollup configuration file:
import includePaths from 'rollup-plugin-includepaths';
let includePathOptions = {
include: {},
paths: ['src/lib', 'src/other'],
external: [],
extensions: ['.js', '.json', '.html']
};
export default {
entry: './app.js',
format: 'cjs',
dest: 'public/app.min.js',
plugins: [ includePaths(includePathOptions) ],
};
['']
An array of source paths in your project where the plugin should look for files
Example: ['src/lib', 'src/foo']
By default, resolve files from working dir
A map of module=>path/to/file.js with custom module paths. Used to override the search with a static path (like Browserify does with the "browser" config).
Use this option if you want to skip the file resolution and directly resolve a module name to a given path.
Example:
include: {
// Import example: import angular from 'angular';
'angular': 'bower_components/angular/angular.js'
}
An array of module names that should be excluded from the bundle (external modules).
By default, all the node built-in modules will be marked as external.
To include the built-ins, you can use the builtins plugin and set this config to an empty array.
Example:
// will not include the module 'angular' in the final bundle
external: ['angular']
An array of file extensions to look for in the project.
Default: ['.js', '.json']
FAQs
Rollup plugin to use relative paths in your project files
The npm package rollup-plugin-includepaths receives a total of 14,311 weekly downloads. As such, rollup-plugin-includepaths popularity was classified as popular.
We found that rollup-plugin-includepaths 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.