Skip to content

Commit

Permalink
update: replace vue version when rolling bundle
Browse files Browse the repository at this point in the history
* remove vue jsx
  • Loading branch information
bcakmakoglu committed Oct 20, 2021
1 parent 5f500bc commit 31c896e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 236 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-replace": "^2.4.2",
"@vitejs/plugin-vue": "^1.9.3",
"@vitejs/plugin-vue-jsx": "^1.2.0",
"@vue/babel-plugin-jsx": "^1.1.1",
"autoprefixer": "^10.3.7",
"esbuild-register": "^2.6.0",
"eslint": "^7.32.0",
Expand All @@ -73,7 +71,6 @@
"tslib": "^2.3.1",
"typescript": "^4.4.4",
"unplugin-auto-import": "^0.4.12",
"unplugin-vue-components": "^0.16.0",
"vite": "^2.6.10",
"vite-svg-loader": "^2.2.0",
"vue": "^3.2.20",
Expand Down
197 changes: 0 additions & 197 deletions pnpm-lock.yaml

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

11 changes: 9 additions & 2 deletions rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import { terser } from 'rollup-plugin-terser'
import dts from 'rollup-plugin-dts'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import babel from '@rollup/plugin-babel'
import { babel } from '@rollup/plugin-babel'
import replace from '@rollup/plugin-replace'
// @ts-ignore
import svg from 'rollup-plugin-svg'
import postcss from 'rollup-plugin-postcss'
// @ts-ignore
import { DEFAULT_EXTENSIONS as DEFAULT_BABEL_EXTENSIONS } from '@babel/core'

import pkg from './package.json'

const configs: any[] = []

const activePackages = [
Expand Down Expand Up @@ -88,10 +91,14 @@ for (const { external, iife } of activePackages) {
}),
commonjs({ include: 'node_modules/**' }),
babel({
extensions: [...DEFAULT_BABEL_EXTENSIONS, '.ts', '.tsx'],
extensions: [...DEFAULT_BABEL_EXTENSIONS, '.ts'],
exclude: 'node_modules/**',
babelHelpers: 'bundled',
}),
replace({
__REACT_FLOW_VERSION__: JSON.stringify(pkg.version),
preventAssignment: true,
}),
],
external: ['vue', ...(external || [])],
})
Expand Down
Loading

1 comment on commit 31c896e

@vercel
Copy link

@vercel vercel bot commented on 31c896e Oct 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.