Skip to content

Commit

Permalink
fix: change ESmodule to CommonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaweiss committed Nov 25, 2021
1 parent 02faaf2 commit 2905558
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Change log
=======
v1.0.1
fix: change ESmodule to CommonJS

v1.0.0
release

v0.0.7
fix: base path, update readme, add github workflow

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default defineConfig({
})
```

2. Build Production
3. Build Production

```
pnpm run build
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default defineConfig({
})
```

2. 打包发布生产代码
3. 打包发布生产代码

```
pnpm run build
Expand Down
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import colors from 'colors'
import glob from 'glob'
import path from 'path'
import OSS from 'ali-oss'
import {URL} from 'url'
const colors = require('colors')
const glob = require('glob')
const path = require('path')
const OSS = require('ali-oss')
const {URL} = require( 'url')

import { normalizePath } from 'vite'
const { normalizePath } = require('vite')

export default function vitePluginAliOss (options) {
module.exports = function vitePluginAliOss (options) {
let baseConfig = '/'
let buildConfig = ''

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"homepage": "https://github.com/xiaweiss/vite-plugin-ali-oss",
"repository": "https://github.com/xiaweiss/vite-plugin-ali-oss",
"license": "MIT",
"type": "module",
"main": "index.js",
"keywords": [
"vite-plugin",
Expand Down

0 comments on commit 2905558

Please sign in to comment.