称重小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
526 B

  1. // babel-preset-taro 更多选项和默认值:
  2. // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
  3. module.exports = {
  4. presets: [
  5. ['taro', {
  6. framework: 'preact',
  7. ts: true
  8. }
  9. ]
  10. ],
  11. plugins: [
  12. [
  13. 'import',
  14. {
  15. libraryName: 'ossaui',
  16. customName: (name) => `ossaui/lib/components/${name.replace(/^os-/, '')}`,
  17. customStyleName: (name) => `ossaui/dist/style/components/${name.replace(/^os-/, '')}.scss`
  18. },
  19. 'ossaui'
  20. ]
  21. ]
  22. }