2

Here is the full code: https://github.com/kenpeter/osmosis_drive_front

What I want to do is use element UI for my project. I follow this quick guide. There is a babelrc setting in it. I have difficult time to merge my babelrc with this one below. Anyone know how to merge these two babelrc and make Element UI working with Vuejs?

My babelrc:

{
  "presets": [
    "es2015",
    "stage-2"
  ],
  "plugins": [
    "transform-runtime"
  ],
  "comments": false
}

Element UI babelrc

{
  "presets": [
    ["es2015", { "modules": false }]
  ],
  "plugins": [["component", [
    {
      "libraryName": "element-ui",
      "styleLibraryName": "theme-default"
    }
  ]]]
}

1 Answer 1

1

This should do:

{
  "presets": [
    ["es2015", { "modules": false }],
    "stage-2"
  ],
  "plugins": [
    "transform-runtime",
    ["component", [
        {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-default"
        }
    ]]
  ],
  "comments": false
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.