Skip to content

Support for other devtool options for development mode #175

Open

Description

@daveisfera
  • Operating System: macOS 10.14.6
  • Node Version: 12.11.1
  • NPM Version: 6.11.3
  • webpack Version: 4.41.0
  • terser-webpack-plugin Version: 1.4.1

Feature Proposal

Support more options for devtool, in particular, the development friendly ones

Feature Use Case

Currently, only the slowest options for devtool are supported, but this makes development builds take longer than they need to and it would be nice to be able to use the cheaper options for devtool

Activity

  1. added
    enhancement
    on Oct 19, 2019
  2. alexander-akait commented on Oct 19, 2019

    @alexander-akait
    Member

    Unfortunately, support for others is not possible for technical reasons, for example eval* can't be handled terser, also many of devtool for development mode, where unnecessary use minimizer. Anyway i mark this as enhancement if somebody have ideas how it can be implemented. PR welcome.

  3. daveisfera commented on Oct 19, 2019

    @daveisfera
    Author

    That makes sense. Go ahead and close this out, if there's not a good way to do this.

  4. fabiosantoscode commented on Dec 16, 2019

    @fabiosantoscode
    Contributor

    @evilebottnawi is Terser not behaving as it should in the face of eval for some reason? Please do let me know.

  5. alexander-akait commented on Dec 17, 2019

    @alexander-akait
    Member

    @fabiosantoscode because we have code + source maps inside eval function, so it is normal what terser doesn't handle that 😄

  6. fabiosantoscode commented on Dec 17, 2019

    @fabiosantoscode
    Contributor

    @evilebottnawi Terser can minify new Function(...) in some situations, given the unsafe_Function option is enabled. If required, we can minify eval as well.

  7. alexander-akait commented on Dec 17, 2019

    @alexander-akait
    Member

    @fabiosantoscode it will be great 😄 , just do simple example webpack config with devtool: 'eval' and look how at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions