Skip to content

[Discussion] PWC Rollup 插件接入组件工程形式 #47

@ChrisCindy

Description

@ChrisCindy

1. 内置

组件工程内置 PWC Rollup 插件,用户可零配置开箱即用。对于 PWC Rollup 插件独有的配置,可在 build.config.ts 中添加 pwc 字段处理:

import { defineConfig } from '@ice/pkg';

export default defineConfig({
  pwc: {
    //...
  }
})

2. 外置,需由用户自行引入,类似 vite 中使用 vue 插件:

import { defineConfig } from '@ice/pkg-cli';
import pwc from 'rollup-plugin-pwc'; // 或处理为 build scripts 插件

export default defineConfig({
  plugins: [pwc()]
})

3. PWC 独立工程二次包装 @ice/pkg

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