Skip to content

webpacker:compile doesnt seem to be loading babelrc #1336

@roine

Description

@roine

Im trying to get my js to compile to valid JS for IE10. Also the debug mode doesnt seem to run in prod compile mode, everything is fine in webpack-dev-server. Here's my config:

  "presets": [
    ["env", {
      "modules": false,
      "targets": {
        "browsers": ["IE 10",
          "> 1%",
          "last 2 versions"
        ],
      },
      "useBuiltIns": true,
      "debug": true,
    }]
  ],

  "plugins": [
    "syntax-dynamic-import",
    "transform-object-rest-spread",
    ["transform-class-properties", { "spec": true }]
  ]
}

Here is where it breaks r=n[i]={i,, IE10 doesnt support this syntax.

Following screenshots are from the same page

Dev mode
screen shot 2018-03-11 at 1 56 48 pm

After compile, running in Prod mode
screen shot 2018-03-11 at 2 03 43 pm

How do I get my prod build to work for IE10?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions