Uploaded image for project: 'stripes-webpack'
  1. stripes-webpack
  2. STRWEB-21

Add loose to plugin-proposal-private-property-in-object

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: TBD
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.3.1, 2.0.0
    • Labels:
      None
    • Template:
      Front-end User Story Template
    • Sprint:
      Prokopovych - Sprint 120
    • Story Points:
      1
    • Development Team:
      Prokopovych

      Description

      We started seeing multiple issues similar to:

       

      The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly addingThe "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding ["@babel/plugin-proposal-private-property-in-object", { "loose": true }]to the "plugins" section of your Babel config.Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-property-in-object since the "loose" mode option was set to "true" for @babel/plugin-proposal-private-methods.
      

       

      It looks like adding:

       

      ['@babel/plugin-proposal-private-property-in-object', { 'loose': true }]

      resolves it.

       

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              mpk35 Michal Kuklis
              Reporter:
              mpk35 Michal Kuklis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases