Skip to content

Commit

Permalink
v2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
wwhwwhwwh committed Aug 6, 2022
1 parent efa1fd3 commit 01324ef
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 14 deletions.
6 changes: 6 additions & 0 deletions dist/v-distpicker.esm.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/v-distpicker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "v-distpicker",
"description": "A flexible, highly available district selector for picking provinces, cities and districts of China.",
"version": "2.0.7",
"version": "2.0.8",
"author": "jcc <changejian@gmail.com>",
"license": "MIT",
"main": "dist/v-distpicker.js",
"module": "dist/v-distpicker.esm.js",
"files": [
"src",
"dist/*.js"
"dist"
],
"keywords": [
"省份",
Expand Down Expand Up @@ -36,6 +37,7 @@
"type": "git",
"url": "git+https://github.com/jcc/v-distpicker.git"
},
"homepage": "https://jcc.github.io/v-distpicker/",
"devDependencies": {
"@babel/core": "^7.18.10",
"@babel/plugin-transform-runtime": "^7.18.10",
Expand Down
32 changes: 21 additions & 11 deletions script/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import scss from 'rollup-plugin-scss'
import dartSass from 'sass'
import { terser } from 'rollup-plugin-terser'
import vue from '@vitejs/plugin-vue'
import { name, version, author, license } from '../package.json'
import { name, version, author, license, main, module } from '../package.json'
const isProd = process.env.NODE_ENV === 'production'

const banner =
Expand All @@ -15,19 +15,29 @@ const banner =
` * Released under the ${license} License.\n` +
' */'

const globals = {
vue: 'Vue',
}

export default {
input: 'src/index.js',
output: {
globals: {
vue: 'Vue',
output: [
{
globals,
name: 'VDistpicker',
file: main,
format: 'umd',
banner,
sourcemap: !isProd,
plugins: [terser()],
},
name: 'VDistpicker',
file: 'dist/v-distpicker.js',
format: 'umd',
banner,
sourcemap: !isProd,
plugins: [terser()],
},
{
banner,
file: module,
format: 'esm',
plugins: [terser()],
},
],
external: ['vue'],
plugins: [
vue({
Expand Down

0 comments on commit 01324ef

Please sign in to comment.