Hi, I have a similar problem. I created a new ember app following the ember guide. I also did a ember build (>Ember build). In the dist folder, I opened the vendor.js file. I see three evals that are flagged as potential CSP issues. Here are the three lines:
// “…/…/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/app.js”:
/!****************************************************************************************************!
! C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/app.js !
**************************************************************************************************/
/! no static exports found /
// (function(module, exports, webpack_require) {
eval(“\nif (typeof document !== ‘undefined’) {\n webpack_require.p = (function(){\n var scripts = document.querySelectorAll(‘script’);\n return scripts[scripts.length - 1].src.replace(/\/[^/]*$/, ‘/’);\n })();\n}\n\nmodule.exports = (function(){\n var d = _eai_d;\n var r = _eai_r;\n window.emberAutoImportDynamic = function(specifier) {\n if (arguments.length === 1) {\n return r(‘eai_dyn’ + specifier);\n } else {\n return r(‘eai_dynt’ + specifier)(Array.prototype.slice.call(arguments, 1))\n }\n };\n})();\n\n\n//# sourceURL=webpack://ember_auto_import/C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/app.js?”);
/***/ }),
// “…/…/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/l.js”:
/!!
! C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/l.js !
**/
/! no static exports found /
// (function(module, exports) {
eval(“\nwindow._eai_r = require;\nwindow._eai_d = define;\n\n\n//# sourceURL=webpack://ember_auto_import/C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/l.js?”);
/***/ }),
// 0:
/!!
! multi C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/l.js C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/app.js !
*/
/! no static exports found /
/*/ (function(module, exports, webpack_require) {
eval(“webpack_require(/*! C:\Users\lester\AppData\Local\Temp\2\broccoli-53036GLnLQ6wNbskf\cache-318-bundler\staging\l.js /"…/…/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/l.js");\nmodule.exports = webpack_require(/! C:\Users\lester\AppData\Local\Temp\2\broccoli-53036GLnLQ6wNbskf\cache-318-bundler\staging\app.js */"…/…/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/app.js");\n\n\n//# sourceURL=webpack://ember_auto_import/multi_C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/l.js_C:/Users/lester/AppData/Local/Temp/2/broccoli-53036GLnLQ6wNbskf/cache-318-bundler/staging/app.js?”);
/***/ })
/******/ });//# sourceMappingURL=vendor.map
My environment information.
C:\EmberApps\super-rental>ember -v
ember-cli: 3.28.5
node: 14.16.1
os: win32 x64
Is there a way to prevent the evals?
Thanks.