{"library":"rollup-plugin-extensions","title":"rollup-plugin-extensions","description":"A Rollup plugin that resolves local files with custom extensions (e.g., .tsx, .ts, .jsx). Version 0.1.0 is the only release; it is in early development with no test suite. Unlike rollup-plugin-node-resolve, it avoids resolving node_modules entirely, focusing solely on adding extension support for local imports. It is primarily intended for building packages where you control the dependency graph, and it automatically resolves index files based on the provided extensions.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-extensions"],"cli":null},"imports":["import extensions from 'rollup-plugin-extensions'","const extensions = require('rollup-plugin-extensions')","import extensions = require('rollup-plugin-extensions')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport extensions from 'rollup-plugin-extensions';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'cjs',\n  },\n  plugins: [\n    extensions({\n      extensions: ['.ts', '.tsx', '.js', '.jsx'],\n      resolveIndex: true,\n    }),\n  ],\n};\n// Now you can import './foo.ts' without specifying the extension in the source code.","lang":"javascript","description":"Shows a basic Rollup configuration using rollup-plugin-extensions to resolve TypeScript and JSX files locally.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}