Sha256: b09538d2589b2a351cf48f7b59b45bea793132f473907a0d0513d9c45f2b563d

Contents?: true

Size: 792 Bytes

Versions: 2

Compression:

Stored size: 792 Bytes

Contents

import require, { has } from 'require';
import bootstrap from './bootstrap';
// Globals mode template compiler
if (has('@ember/application') && has('ember-browser-environment') && has('ember-glimmer')) {
    // tslint:disable:no-require-imports
    let emberEnv = require('ember-browser-environment');
    let emberGlimmer = require('ember-glimmer');
    let emberApp = require('@ember/application');
    let Application = emberApp.default;
    let { hasTemplate, setTemplate } = emberGlimmer;
    let { hasDOM } = emberEnv;
    Application.initializer({
        name: 'domTemplates',
        initialize() {
            let context;
            if (hasDOM) {
                context = document;
            }
            bootstrap({ context, hasTemplate, setTemplate });
        },
    });
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-template-compiler/lib/system/initializer.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-template-compiler/lib/system/initializer.js