A Rollup plugin which locates modules using the oxc-resolver, for using third party modules in node_modules.
This plugin is highly experimental and is under heavy development (
0.0.xversions so far). Feel free to install and give this plugin a shot, but refrain from using it in production.
npm install --save-dev rollup-plugin-oxc-resolve
yarn add -D rollup-plugin-oxc-resolve
pnpm add -D rollup-plugin-oxc-resolve// rollup.config.js
import { oxcResolve, defineRollupOxcResolveOptions } from 'rollup-plugin-oxc-resolve';
import { swc, defineRollupSwcOption } from 'rollup-plugin-swc3';
export default {
input: 'src/index.js',
output: {
dir: 'output',
format: 'cjs'
},
plugins: [
oxcResolve(defineRollupOxcResolveOptions({
// `defineRollupOxcResolveOptions` helps utilizing your IDE's type hinting and auto-completion.
})),
// Might wanna use my `rollup-plugin-swc3` to speed up your rollup build as well
swc(defineRollupSwcOption({
// ... There goes the plugin's configuration
})),
]
};rollup-plugin-oxc-resolve © Sukka, Released under the MIT License.
Authored and maintained by Sukka with help from contributors (list).
Personal Website · Blog · GitHub @SukkaW · Telegram Channel @SukkaChannel · Mastodon @sukka@acg.mn · Twitter @isukkaw · Keybase @sukka