ember-cli / ember-cli-terser

JavaScript minification for Ember-CLI
MIT License
23 stars 27 forks source link

Ember cli sourcemaps setting not respected by 4.0.2? #306

Closed MiikaH closed 1 year ago

MiikaH commented 2 years ago

Unlike the documentation claims, ember-cli-terser seems to generate sourcemaps even for production builds regardless of how the ember-cli sourcemaps setting is configured.

Only way to disable sourcemaps from what I can tell is explicitly set 'ember-cli-terser'.terser.sourceMap = false

bertdeblock commented 1 year ago

@MiikaH If this issue is still relevant to you, would you mind testing out #313?

EWhite613 commented 1 year ago

When will this fix be released @bertdeblock? Looks like it hasn't been released in 2 years

EWhite613 commented 1 year ago

Even if I am explicitly disabling for terser, it still looks like it's producing sourcemaps. Whereas previously using ember-cli-uglify didn't have this problem

    'ember-cli-terser': {
      terser: {
        compress: {
          collapse_vars: false
        },
        sourceMap: false
      }
    },