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

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

10
      Page(createPageConfig(Entry, '${this.name}'));
11
    `;
12
  }
13
}

Read our documentation on viewing source code .

Loading