Skip to content

Commit e64f2bd

Browse files
committed
fix embroider
1 parent bda2944 commit e64f2bd

File tree

9 files changed

+3600
-4421
lines changed

9 files changed

+3600
-4421
lines changed

app/controllers/project-version/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Controller from '@ember/controller';
2-
import { htmlSafe } from '@ember/string';
2+
import { htmlSafe } from '@ember/template';
33

44
export default Controller.extend({
55
oldPackageImportSyntax: htmlSafe(

app/helpers/html-safe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { helper } from '@ember/component/helper';
2-
import { htmlSafe as emberHtmlSafe } from '@ember/string';
2+
import { htmlSafe as emberHtmlSafe } from '@ember/template';
33

44
export function htmlSafe([content]) {
55
return emberHtmlSafe(content);

ember-cli-build.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,14 @@ module.exports = function (defaults) {
6363
destDir: '/assets/',
6464
});
6565

66-
6766
const { Webpack } = require('@embroider/webpack');
68-
const appTree = require('@embroider/compat').compatBuild(app, Webpack);
67+
const appTree = require('@embroider/compat').compatBuild(app, Webpack, {
68+
staticAddonTrees: true,
69+
staticAddonTestSupportTrees: true,
70+
staticHelpers: true,
71+
staticModifiers: true,
72+
staticComponents: true,
73+
});
6974

7075
return mergeTrees([appTree, mappingsTree]);
7176
};

0 commit comments

Comments
 (0)