Rollup plugin that allows defining import aliases, useful for reducing relative path complexity and simplifying module resolution. The current stable version is 1.3.4, last released in 2018, with no active development. It is a fork of the original rollup-plugin-alias that adds the ability to resolve aliases with file extensions (e.g., .jsx). Compared to the official @rollup/plugin-alias, this package is unmaintained and lacks support for newer Rollup versions or ESM. It is primarily for legacy projects using CommonJS-style Rollup configs.
npm install maptalks-rollup-plugin-aliasNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to configure maptalks-rollup-plugin-alias in a Rollup config to replace 'vue' with a browser build and set '@' as an alias for the src directory.
Use @rollup/plugin-alias for official support.
Switch to @rollup/plugin-alias.
Ensure relative aliases use './' prefix if you intend to use the resolve extension mechanism.
Use the original package '@rollup/plugin-alias' to avoid confusion.
npm install rollup-plugin-alias (or this fork under its npm name).
Use import statement instead, or rename config to .cjs and use require.
Use default import: import alias from 'rollup-plugin-alias'
Ensure alias keys map to valid modules or paths.