A platform for community discussion. Free, open, simple.
DEV: Update ember-template-compiler paths (#38542)
David Taylor6fac0432ec3d
diff --git a/frontend/asset-processor/theme-rollup.js b/frontend/asset-processor/theme-rollup.jsindex f574c736d04..335cdcd00e8 100644--- a/frontend/asset-processor/theme-rollup.js+++ b/frontend/asset-processor/theme-rollup.js@@ -4,6 +4,7 @@ import { babel, getBabelOutputPlugin } from "@rollup/plugin-babel";import HTMLBarsInlinePrecompile from "babel-plugin-ember-template-compilation";import DecoratorTransforms from "decorator-transforms";import colocatedBabelPlugin from "ember-cli-htmlbars/lib/colocated-babel-plugin";+import { precompile } from "ember-source/ember-template-compiler/index.js";import EmberThisFallback from "ember-this-fallback";import { memfs } from "memfs";import transformActionSyntax from "discourse-plugins/transform-action-syntax";@@ -11,7 +12,6 @@ import { browsers } from "../discourse/config/targets";import babelTransformModuleRenames from "../discourse/lib/babel-transform-module-renames";import AddThemeGlobals from "./add-theme-globals";import BabelReplaceImports from "./babel-replace-imports";-import { precompile } from "./node_modules/ember-source/dist/ember-template-compiler";import discourseColocation from "./rollup-plugins/discourse-colocation";import discourseExternalLoader from "./rollup-plugins/discourse-external-loader";import discourseFileSearch from "./rollup-plugins/discourse-file-search";diff --git a/frontend/deprecation-silencer/index.js b/frontend/deprecation-silencer/index.jsindex a98397dcda3..9522a7462d0 100644--- a/frontend/deprecation-silencer/index.js+++ b/frontend/deprecation-silencer/index.js@@ -3,6 +3,7 @@ const SILENCED_WARN_PREFIXES = ['unexpectedly found "', // https://github.com/emberjs/ember.js/issues/19392"The setting 'staticAddonTestSupportTrees'","The setting 'staticAddonTrees'",+ "\n\n--------\n+ Your app is using the legacy ember-template-compiler.js AMD bundle", // Remove when ROLLUP_PLUGIN_COMPILER is promoted];class DeprecationSilencer {@@ -56,6 +57,7 @@ const DEPRECATION_SILENCER = new DeprecationSilencer();*/module.exports = function () {DEPRECATION_SILENCER.silence(console, "warn");+ DEPRECATION_SILENCER.silence(console, "log");return {};};