remaxjs / remax
1 1
import * as path from 'path';
2 1
import VirtualEntry from './VirtualEntry';
3

4 1
export default class ComponentEntry extends VirtualEntry {
5 1
  outputSource() {
6 1
    return `
7
      import { createComponentConfig } from '@remax/runtime';
8
      import Entry from './${path.basename(this.filename)}';
9

10
      Component(createComponentConfig(Entry));
11
    `;
12
  }
13
}

Read our documentation on viewing source code .

Loading