Skip to content

Commit

Permalink
Remove all unnecessary triple curlies
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Mar 9, 2023
1 parent 3b18a27 commit 4485f71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ let d = w.define;
w._embroiderRouteBundles_ = [
{{#each lazyRoutes as |route|}}
{
names: {{{json-stringify route.names}}},
names: {{json-stringify route.names}},
load: function() {
return import("{{js-string-escape route.path}}");
}
Expand All @@ -1379,7 +1379,7 @@ w._embroiderRouteBundles_ = [
w._embroiderEngineBundles_ = [
{{#each lazyEngines as |engine|}}
{
names: {{{json-stringify engine.names}}},
names: {{json-stringify engine.names}},
load: function() {
return import("{{js-string-escape engine.path}}");
}
Expand All @@ -1390,10 +1390,10 @@ w._embroiderEngineBundles_ = [
{{#if autoRun ~}}
if (!runningTests) {
i("{{js-string-escape mainModule}}").default.create({{{json-stringify appConfig}}});
i("{{js-string-escape mainModule}}").default.create({{json-stringify appConfig}});
}
{{else if appBoot ~}}
{{{ appBoot }}}
{{ appBoot }}
{{/if}}
{{#if testSuffix ~}}
Expand Down Expand Up @@ -1450,7 +1450,7 @@ function stringOrBufferEqual(a: string | Buffer, b: string | Buffer): boolean {

const babelFilterTemplate = compile(`
const { babelFilter } = require(${JSON.stringify(require.resolve('./index.js'))});
module.exports = babelFilter({{{json-stringify skipBabel}}}, "{{{js-string-escape appRoot}}}");
module.exports = babelFilter({{json-stringify skipBabel}}, "{{js-string-escape appRoot}}");
`) as (params: { skipBabel: Options['skipBabel']; appRoot: string }) => string;

// meta['renamed-modules'] has mapping from classic filename to real filename.
Expand Down

0 comments on commit 4485f71

Please sign in to comment.