
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
rollup-plugin-file-resolve
Advanced tools
Rollup plugin to resolve files with custom loaders at build time.
Rollup plugin to resolve files with custom loaders at build time.
npm:
npm i rollup-plugin-file-resolve -D
yarn:
yarn add rollup-plugin-file-resolve -D
pnpm:
pnpm add rollup-plugin-file-resolve -D
Checkout the Example
[alias]Type: text | object
Determines from where to resolve the specific file.
Available built-in loaders: text
For example:
{
// Resolve `lmao` from `library.js`
lmao: "project/library.js",
// Resolve `myo` from `file.txt` and import it as a string
myo: {
path: "project/file.txt",
loader: "text"
}
}
Example output:
var lmao = "Random ahh file";
function myo(text) {
console.log(text);
}
Using your own custom loader is very simple, just replace the loader prop with a function.
Here is an example:
myo: {
path: "project/file.txt",
loader: async (code) => await transform(code)
}
The loader function can be both sync or async.
loadersReturns: Object of default loaders:
{
text: (code) => code;
}
Made by Angelo II
Copyright © (C) Angelo II, MIT license.
FAQs
Rollup plugin to resolve files with custom loaders at build time.
We found that rollup-plugin-file-resolve 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.