1 1
import * as path from 'path';
2 1
import hostComponents from '../hostComponents/node';
3
import type { PluginConstructor } from '@remax/types';
4

5 1
const EJS_TPL_ROOT = path.join(__dirname, '../../templates');
6

7 1
const plugin: PluginConstructor = () => {
8 1
  return {
9
    meta: {
10
      global: 'tt',
11
      template: {
12
        extension: '.ttml',
13
        tag: 'import',
14
        src: 'src',
15
      },
16
      style: '.ttss',
17
      ejs: {
18
        base: path.join(EJS_TPL_ROOT, 'base.ejs'),
19
        page: path.join(EJS_TPL_ROOT, 'page.ejs'),
20
      },
21
    },
22
    hostComponents,
23
    skipHostComponents: ['swiper-item'],
24
  };
25
};
26

27 1
export default plugin;

Read our documentation on viewing source code .

Loading