├── .eslintrc.json
├── .gitignore
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── README.zh-CN.md
├── examples
├── exports
│ ├── index.html
│ ├── package.json
│ ├── src
│ │ ├── App.tsx
│ │ ├── exports.ts
│ │ ├── main.tsx
│ │ └── vite-env.d.ts
│ ├── tsconfig.json
│ └── vite.config.ts
├── react-ts
│ ├── index.html
│ ├── package.json
│ ├── src
│ │ ├── App.tsx
│ │ ├── main.tsx
│ │ └── vite-env.d.ts
│ ├── tsconfig.json
│ └── vite.config.ts
├── vite2.7
│ ├── index.html
│ ├── package.json
│ ├── src
│ │ ├── App.vue
│ │ ├── main.ts
│ │ └── vant.ts
│ └── vite.config.js
└── vue
│ ├── index.html
│ ├── package.json
│ ├── src
│ ├── App.vue
│ └── main.js
│ └── vite.config.js
├── index.d.ts
├── package.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── src
├── constant.ts
├── index.ts
├── options.ts
├── transform.ts
├── types.ts
└── utils.ts
├── test
└── transform.spec.ts
├── tsconfig.json
└── vitest.config.ts
/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@crcong/eslint-config-typescript"
3 | }
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | yarn-error.log
3 | dist
4 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/.vscode/settings.json
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/LICENSE
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/README.md
--------------------------------------------------------------------------------
/README.zh-CN.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/README.zh-CN.md
--------------------------------------------------------------------------------
/examples/exports/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/exports/index.html
--------------------------------------------------------------------------------
/examples/exports/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/exports/package.json
--------------------------------------------------------------------------------
/examples/exports/src/App.tsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/exports/src/App.tsx
--------------------------------------------------------------------------------
/examples/exports/src/exports.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/exports/src/exports.ts
--------------------------------------------------------------------------------
/examples/exports/src/main.tsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/exports/src/main.tsx
--------------------------------------------------------------------------------
/examples/exports/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/examples/exports/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/exports/tsconfig.json
--------------------------------------------------------------------------------
/examples/exports/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/exports/vite.config.ts
--------------------------------------------------------------------------------
/examples/react-ts/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/react-ts/index.html
--------------------------------------------------------------------------------
/examples/react-ts/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/react-ts/package.json
--------------------------------------------------------------------------------
/examples/react-ts/src/App.tsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/react-ts/src/App.tsx
--------------------------------------------------------------------------------
/examples/react-ts/src/main.tsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/react-ts/src/main.tsx
--------------------------------------------------------------------------------
/examples/react-ts/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/examples/react-ts/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/react-ts/tsconfig.json
--------------------------------------------------------------------------------
/examples/react-ts/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/react-ts/vite.config.ts
--------------------------------------------------------------------------------
/examples/vite2.7/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vite2.7/index.html
--------------------------------------------------------------------------------
/examples/vite2.7/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vite2.7/package.json
--------------------------------------------------------------------------------
/examples/vite2.7/src/App.vue:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vite2.7/src/App.vue
--------------------------------------------------------------------------------
/examples/vite2.7/src/main.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vite2.7/src/main.ts
--------------------------------------------------------------------------------
/examples/vite2.7/src/vant.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vite2.7/src/vant.ts
--------------------------------------------------------------------------------
/examples/vite2.7/vite.config.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vite2.7/vite.config.js
--------------------------------------------------------------------------------
/examples/vue/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vue/index.html
--------------------------------------------------------------------------------
/examples/vue/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vue/package.json
--------------------------------------------------------------------------------
/examples/vue/src/App.vue:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vue/src/App.vue
--------------------------------------------------------------------------------
/examples/vue/src/main.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vue/src/main.js
--------------------------------------------------------------------------------
/examples/vue/vite.config.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/examples/vue/vite.config.js
--------------------------------------------------------------------------------
/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/src'
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/package.json
--------------------------------------------------------------------------------
/pnpm-lock.yaml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/pnpm-lock.yaml
--------------------------------------------------------------------------------
/pnpm-workspace.yaml:
--------------------------------------------------------------------------------
1 | packages:
2 | - examples/*
3 |
--------------------------------------------------------------------------------
/src/constant.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/src/constant.ts
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/src/index.ts
--------------------------------------------------------------------------------
/src/options.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/src/options.ts
--------------------------------------------------------------------------------
/src/transform.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/src/transform.ts
--------------------------------------------------------------------------------
/src/types.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/src/types.ts
--------------------------------------------------------------------------------
/src/utils.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/src/utils.ts
--------------------------------------------------------------------------------
/test/transform.spec.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/test/transform.spec.ts
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/tsconfig.json
--------------------------------------------------------------------------------
/vitest.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crcong/vite-plugin-externals/HEAD/vitest.config.ts
--------------------------------------------------------------------------------