rollup-plugin-local-import (Linux x64 GNU binary)

raw JSON →
1.2.0 verified Mon Apr 27 auth: no javascript

Platform-specific binary for the rollup-plugin-local-import package, targeting x86_64-unknown-linux-gnu. Version 1.2.0 is current and stable. This package is part of a system that provides native binaries for Node.js addons; it is automatically installed as an optional dependency and should never be imported directly. The Linux x64 GNU binary enables compilation-free usage on Linux glibc systems.

error Error: Cannot find module 'rollup-plugin-local-import-linux-x64-gnu'
cause Attempted to import the binary package directly instead of the parent package.
fix
Install and import 'rollup-plugin-local-import' instead.
error Error: The module 'rollup-plugin-local-import-linux-x64-gnu' is not a valid native addon
cause Trying to require a binary-only package in a non-compatible environment (e.g., missing glibc or wrong architecture).
fix
Ensure you are on x86_64 GNU/Linux with glibc, and use the parent package 'rollup-plugin-local-import' which handles platform detection.
gotcha This package is a platform-specific binary. Importing it directly will fail or cause unexpected behavior.
fix Always import 'rollup-plugin-local-import' instead of this binary package.
breaking Package is intended only for x86_64 GNU/Linux systems. Will not work on other architectures or operating systems.
fix Use the correct platform-specific binary for your OS (listed as optional dependencies of the parent package).
deprecated Node.js >=10 is required; older versions are not supported.
fix Upgrade Node.js to version 10 or later.
npm install rollup-plugin-local-import-linux-x64-gnu
yarn add rollup-plugin-local-import-linux-x64-gnu
pnpm add rollup-plugin-local-import-linux-x64-gnu

Demonstrates how to use the parent rollup-plugin-local-import package, not the binary. Always use the parent package.

// This package should NOT be used directly. Use the parent package.
// Instead, in your rollup.config.js:
import localImport from 'rollup-plugin-local-import';

export default {
  input: 'src/index.js',
  plugins: [
    localImport({
      // options here
    })
  ],
  output: {
    file: 'dist/bundle.js',
    format: 'cjs'
  }
};