-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build for production with sourcemaps enabled #54
Comments
interesting. I don't have time to dig into this, but if you manage to find a fix I would welcome it |
Similar issue here, as well. Although this app has no direct dependency on uglify / broccoli-uglify-sourcemap. Instead, it seems to be coming from broccoli-terser-sourcemap via ember-cli-terser.
The backtrace:
I haven't yet dug into the magic setting to narrowly fix this issue, but disabling ember-cli-terser entirely certainly does the trick. ;) --- a/ember-cli-build.js
+++ b/ember-cli-build.js
@@ -109,14 +109,7 @@ module.exports = function (defaults) {
"ember-cli-terser": {
+ enabled: false,
}, Update 2020-12-23: Seemingly disabling just the sourceMap setting terser via ember-cli-terser does the trick: --- a/ember-cli-build.js
+++ b/ember-cli-build.js
@@ -109,14 +109,7 @@ module.exports = function (defaults) {
"ember-cli-terser": {
+ terser: {
+ sourceMap: false,
+ }
}, |
I cannot build an ember app for production if i enable sourcemaps
Error:
It can reproduced on a new ember app. For now, just excluding it from uglify works.
The text was updated successfully, but these errors were encountered: