How does the Mini Program project created by taro refer to the ant design mobile UI library

problem description

the taro project created WeChat Mini Programs, downloaded antd-mobile and babel-plugin-import,react-dom along with the official documents, and configured plugins, but could not reference the styles in the UI library. Why?

the environmental background of the problems and what methods you have tried

related codes

plugins: {

babel: {
  sourceMap: true,
  presets: [
    "env"
  ],
  plugins: [
    "transform-decorators-legacy",
    "transform-class-properties",
    "transform-object-rest-spread",
    ["import", { libraryName: "antd-mobile", style: "true" }]
  ]
},

},
defineConstants: {
},

what result do you expect? What is the error message actually seen?

topic description

sources of topics and their own ideas

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

problem description

the platform version of the problem and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Menu