Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: bump deps
  • Loading branch information
yyx990803 committed Oct 15, 2022
1 parent d562224 commit a115d9e
Show file tree
Hide file tree
Showing 3 changed files with 2,615 additions and 3,309 deletions.
39 changes: 19 additions & 20 deletions package.json
Expand Up @@ -56,42 +56,41 @@
"vue": "^3.2.0"
},
"dependencies": {
"@vue/devtools-api": "^6.0.0-beta.11"
"@vue/devtools-api": "^6.4.4"
},
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-replace": "^2.4.2",
"@types/node": "^15.6.0",
"@vue/compiler-sfc": "^3.2.4",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.4",
"@rollup/plugin-buble": "^1.0.0",
"@rollup/plugin-commonjs": "^13.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-replace": "^5.0.0",
"@types/node": "^18.11.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"brotli": "^1.3.2",
"babel-loader": "^8.2.5",
"brotli": "^1.3.3",
"chalk": "^4.1.1",
"conventional-changelog-cli": "^2.1.1",
"conventional-changelog-cli": "^2.2.2",
"cross-env": "^7.0.3",
"css-loader": "^2.1.0",
"enquirer": "^2.3.5",
"eslint": "^7.27.0",
"enquirer": "^2.3.6",
"eslint": "^7.32.0",
"eslint-plugin-vue-libs": "^4.0.0",
"execa": "^5.0.0",
"express": "^4.17.1",
"fs-extra": "^10.0.0",
"express": "^4.18.2",
"fs-extra": "^10.1.0",
"jest": "^26.6.3",
"puppeteer": "^9.1.1",
"regenerator-runtime": "^0.13.5",
"rollup": "^2.49.0",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"semver": "^7.3.5",
"start-server-and-test": "^1.12.3",
"todomvc-app-css": "^2.4.1",
"typescript": "^4.2.4",
"typescript": "^4.8.4",
"vitepress": "^0.20.0",
"vue": "^3.2.4",
"vue-loader": "^16.5.0",
"vue": "^3.2.41",
"vue-loader": "^17.0.0",
"vue-style-loader": "^4.1.3",
"webpack": "^4.43.0",
"webpack-dev-middleware": "^3.7.2",
Expand Down
74 changes: 57 additions & 17 deletions rollup.config.js
Expand Up @@ -12,12 +12,45 @@ const banner = `/*!
*/`

const configs = [
{ input: 'src/index.js', file: 'dist/vuex.esm-browser.js', format: 'es', browser: true, env: 'development' },
{ input: 'src/index.js', file: 'dist/vuex.esm-browser.prod.js', format: 'es', browser: true, env: 'production' },
{ input: 'src/index.js', file: 'dist/vuex.esm-bundler.js', format: 'es', env: 'development' },
{ input: 'src/index.cjs.js', file: 'dist/vuex.global.js', format: 'iife', env: 'development' },
{ input: 'src/index.cjs.js', file: 'dist/vuex.global.prod.js', format: 'iife', minify: true, env: 'production' },
{ input: 'src/index.cjs.js', file: 'dist/vuex.cjs.js', format: 'cjs', env: 'development' }
{
input: 'src/index.js',
file: 'dist/vuex.esm-browser.js',
format: 'es',
browser: true,
env: 'development'
},
{
input: 'src/index.js',
file: 'dist/vuex.esm-browser.prod.js',
format: 'es',
browser: true,
env: 'production'
},
{
input: 'src/index.js',
file: 'dist/vuex.esm-bundler.js',
format: 'es',
env: 'development'
},
{
input: 'src/index.cjs.js',
file: 'dist/vuex.global.js',
format: 'iife',
env: 'development'
},
{
input: 'src/index.cjs.js',
file: 'dist/vuex.global.prod.js',
format: 'iife',
minify: true,
env: 'production'
},
{
input: 'src/index.cjs.js',
file: 'dist/vuex.cjs.js',
format: 'cjs',
env: 'development'
}
]

function createEntries() {
Expand All @@ -37,6 +70,7 @@ function createEntry(config) {
banner,
file: config.file,
format: config.format,
exports: 'auto',
globals: {
vue: 'Vue'
}
Expand All @@ -56,19 +90,25 @@ function createEntry(config) {
c.external.push('@vue/devtools-api')
}

c.plugins.push(replace({
preventAssignment: true,
__VERSION__: pkg.version,
__DEV__: isBundlerBuild
? `(process.env.NODE_ENV !== 'production')`
: config.env !== 'production',
__VUE_PROD_DEVTOOLS__: isBundlerESMBuild
? '__VUE_PROD_DEVTOOLS__'
: 'false'
}))
c.plugins.push(
replace({
preventAssignment: true,
__VERSION__: pkg.version,
__DEV__: isBundlerBuild
? `(process.env.NODE_ENV !== 'production')`
: config.env !== 'production',
__VUE_PROD_DEVTOOLS__: isBundlerESMBuild
? '__VUE_PROD_DEVTOOLS__'
: 'false'
})
)

if (config.transpile !== false) {
c.plugins.push(buble())
c.plugins.push(
buble({
transforms: { asyncAwait: false, forOf: false }
})
)
}

c.plugins.push(resolve())
Expand Down

0 comments on commit a115d9e

Please sign in to comment.