0.0.7 • Published 9 months ago

@farmfe/plugin-virtual v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@farmfe/plugin-virtual

Inspired By @rollup/plugin-virtual

šŸ£ A Rollup plugin which loads virtual modules from memory

install

pnpm add @farmfe/plugin-virtual --save-dev # or yarn add @farmfe/plugin-virtual --save-dev

Usage

farm.config.ts

import { defineConfig } from '@farmfe/core';

export default defineConfig({
  plugins: [
    [
      '@farmfe/plugin-virtual',
      {
        'virtual-module': 'export const a = 1',
        'src/01.js': 'export const module01 = "virtual-module"',
      },
    ],
  ],
});

index.js

import { a } from 'virtual-module';

src/02.js

import { module01 } from './01.js';
0.0.7

9 months ago

0.0.6

10 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.1

1 year ago

0.0.2

1 year ago