Cpp.js Rollup plugin
A tool for seamless C++ integration with the Rollup bundler.
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(),
]
});