rollup-plugin-js-imports
v1.2.6
Published
Allow importing TypeScript files using the `.js` extension and files with an extra `.js` extension in Rollup.
Downloads
39
Readme
rollup-plugin-js-imports
Installation
npm install --save-dev rollup-plugin-js-imports
Usage
With Rollup:
// rollup.config.js
import jsImports from 'rollup-plugin-js-imports';
export default {
plugins: [jsImports()],
};
With Vite:
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import jsImports from 'rollup-plugin-js-imports';
export default defineConfig({
plugins: [vue(), jsImports()],
});