@cpp.js/plugin-rollup
v1.0.0-beta.2
Published
Cpp.js Rollup plugin: A tool for seamless C++ integration with the Rollup bundler.
Downloads
107
Readme
@cpp.js/plugin-rollup
Cpp.js Rollup plugin
A tool for seamless C++ integration with the Rollup bundler.
Integration
To integrate cpp.js into your project using Rollup as a bundler, you can utilize the @cpp.js/plugin-rollup plugin. Start by installing these package with the following command:
npm install @cpp.js/plugin-rollup --save-dev
To enable the plugin, modify the vite.config.js
file as shown below.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
+ import rollupCppjsPlugin from '@cpp.js/plugin-rollup'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
+ rollupCppjsPlugin(),
]
});