一覧へ戻る
zeekay/rollup-plugin-node-resolve(新しいタブで開きます)
主要言語: CoffeeScript
Use the Node.js resolution algorithm with Rollup
- star 数
- 2
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2026/09/16
主要言語: CoffeeScript
Use the Node.js resolution algorithm with Rollup
Locate modules using the Node resolution
algorithm, for using
third party modules in node_modules. Differs in the following ways from
rollup-plugin-node-resolve:
Originally developed as part of Handroll.
$ npm install @zeekay/rollup-plugin-node-resolve --save-dev
Add the following code to your project's rollup.config.js:
import resolve from '@zeekay/rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; export default { entry: 'index.js', plugins: [ resolve({ // defaults basedir: path.dirname('index.js'), browser: false, extensions: ['.js', '.json', '.coffee', '.pug', '.styl'], preferBuiltins: true, skip: [] }), commonjs() ] };
MIT