
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@eulores/rollup-plugin-imba
Advanced tools
Use the Imba compiler (v2) to build *.imba
files from source using Rollup.
# npm:
npm install --save-dev @eulores/rollup-plugin-imba
# yarn:
yarn --dev add @eulores/rollup-plugin-imba
mkdir sample
cd sample
yarn init
yarn --dev add rollup
yarn --dev add @rollup/plugin-node-resolve
yarn --dev add @eulores/rollup-plugin-imba
Create or edit rollup.config.js
to add the rollup-plugin-imba
plugin
import resolve from '@rollup/plugin-node-resolve';
import imbaPlugin from '@eulores/rollup-plugin-imba';
export default {
input: 'src/sample.imba',
plugins: [
resolve({"extensions": ['.js', '.imba']}),
imbaPlugin()
],
output: {
file: 'build/bundle.js',
format: 'esm'
}
};
Verify the required development dependencies in package.json
{
"devDependencies": {
"@eulores/rollup-plugin-imba": "^0.0.4",
"@rollup/plugin-node-resolve": "^9.0.0"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Imba project</title>
</head>
<body>
<script src="/build/bundle.js"></script>
</body>
</html>
// use TABS to indent the code. Check how you save the source in your editor!
tag app-root
def render
<self>
<h1> "It works!"
imba.mount <app-root>
npx rollup -c
FAQs
Compile Imba source code with Rollup
We found that @eulores/rollup-plugin-imba 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.