Merge pull request #8 from helloqian12138/generator
build: remove rollup plugin commonjs
This commit is contained in:
commit
9f45b53b36
|
@ -1,5 +1,4 @@
|
|||
import { IBundleOptions } from 'father-build/src/types';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
|
||||
const options: IBundleOptions = {
|
||||
cjs: { type: 'rollup' },
|
||||
|
@ -31,20 +30,6 @@ const options: IBundleOptions = {
|
|||
'@ant-design/icons',
|
||||
],
|
||||
],
|
||||
extraRollupPlugins: [
|
||||
// fix error "'isFragment' is not exported by node_modules/react-is/index.js"
|
||||
// https://github.com/mui-org/material-ui/issues/18791#issuecomment-574275944
|
||||
commonjs({
|
||||
include: '../../node_modules/**',
|
||||
namedExports: {
|
||||
'../../node_modules/react-is/index.js': [
|
||||
'isFragment',
|
||||
'isMemo',
|
||||
'ForwardRef',
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
pkgs: [
|
||||
'drip-table',
|
||||
'drip-table-generator',
|
||||
|
|
|
@ -31,12 +31,10 @@
|
|||
"viewerjs": "^1.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^21.0.1",
|
||||
"babel-plugin-import": "1.13.0",
|
||||
"drip-table": "link:../drip-table",
|
||||
"drip-table-driver-antd": "link:../drip-table-driver-antd",
|
||||
"father-build": "^1.20.4",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"tsc-alias": "^1.4.2",
|
||||
"typescript": "^4.4.4"
|
||||
},
|
||||
|
|
57
yarn.lock
57
yarn.lock
|
@ -2313,19 +2313,6 @@
|
|||
magic-string "^0.25.7"
|
||||
resolve "^1.17.0"
|
||||
|
||||
"@rollup/plugin-commonjs@^21.0.1":
|
||||
version "21.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-21.0.1.tgz#1e57c81ae1518e4df0954d681c642e7d94588fee"
|
||||
integrity sha512-EA+g22lbNJ8p5kuZJUYyhhDK7WgJckW5g4pNN7n4mAFUM96VuwUnNT3xr2Db2iCZPI1pJPbGyfT5mS9T1dHfMg==
|
||||
dependencies:
|
||||
"@rollup/pluginutils" "^3.1.0"
|
||||
commondir "^1.0.1"
|
||||
estree-walker "^2.0.1"
|
||||
glob "^7.1.6"
|
||||
is-reference "^1.2.1"
|
||||
magic-string "^0.25.7"
|
||||
resolve "^1.17.0"
|
||||
|
||||
"@rollup/plugin-eslint@^8.0.1":
|
||||
version "8.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@rollup/plugin-eslint/-/plugin-eslint-8.0.1.tgz#bf7462f96027613729b8a805caaa951dc23c333e"
|
||||
|
@ -3708,14 +3695,6 @@ babel-plugin-dynamic-import-node@^2.3.3:
|
|||
dependencies:
|
||||
object.assign "^4.1.0"
|
||||
|
||||
babel-plugin-import@1.13.0:
|
||||
version "1.13.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-import/-/babel-plugin-import-1.13.0.tgz#c532fd533df9db53b47d4d4db3676090fc5c07a5"
|
||||
integrity sha512-bHU8m0SrY89ub2hBBuYjbennOeH0YUYkVpH6jxKFk0uD8rhN+0jNHIPtXnac+Vn7N/hgkLGGDcIoYK7je3Hhew==
|
||||
dependencies:
|
||||
"@babel/helper-module-imports" "^7.0.0"
|
||||
"@babel/runtime" "^7.0.0"
|
||||
|
||||
babel-plugin-import@^1.13.3:
|
||||
version "1.13.3"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-import/-/babel-plugin-import-1.13.3.tgz#9dbbba7d1ac72bd412917a830d445e00941d26d7"
|
||||
|
@ -5584,20 +5563,13 @@ dot-prop@^6.0.1:
|
|||
dependencies:
|
||||
is-obj "^2.0.0"
|
||||
|
||||
"drip-table-driver-antd@link:packages/drip-table-driver-antd":
|
||||
version "1.0.1"
|
||||
dependencies:
|
||||
react-dom "^16.9.0"
|
||||
"drip-table-generator@link:packages/drip-table-generator":
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
"drip-table@link:packages/drip-table":
|
||||
version "1.0.3"
|
||||
dependencies:
|
||||
cheerio "1.0.0-rc.3"
|
||||
lodash "^4.17.21"
|
||||
rc-resize-observer "^1.0.1"
|
||||
react-dom "^16.9.0"
|
||||
react-window "^1.8.6"
|
||||
viewerjs "1.7.1"
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
dumi-assets-types@1.0.0:
|
||||
version "1.0.0"
|
||||
|
@ -8173,7 +8145,7 @@ is-promise@^2.1.0:
|
|||
resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.2.2.tgz#39ab959ccbf9a774cf079f7b40c7a26f763135f1"
|
||||
integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==
|
||||
|
||||
is-reference@^1.1.2, is-reference@^1.2.1:
|
||||
is-reference@^1.2.1:
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7"
|
||||
integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==
|
||||
|
@ -9112,7 +9084,7 @@ macos-release@^2.2.0:
|
|||
resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.5.0.tgz#067c2c88b5f3fb3c56a375b2ec93826220fa1ff2"
|
||||
integrity sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g==
|
||||
|
||||
magic-string@^0.25.2, magic-string@^0.25.5, magic-string@^0.25.7:
|
||||
magic-string@^0.25.5, magic-string@^0.25.7:
|
||||
version "0.25.7"
|
||||
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
|
||||
integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==
|
||||
|
@ -12867,7 +12839,7 @@ resolve@1.17.0:
|
|||
dependencies:
|
||||
path-parse "^1.0.6"
|
||||
|
||||
resolve@^1.10.0, resolve@^1.11.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.16.1, resolve@^1.17.0, resolve@^1.20.0, resolve@^1.3.2, resolve@^1.5.0, resolve@^1.8.1:
|
||||
resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.16.1, resolve@^1.17.0, resolve@^1.20.0, resolve@^1.3.2, resolve@^1.5.0, resolve@^1.8.1:
|
||||
version "1.20.0"
|
||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
|
||||
integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==
|
||||
|
@ -12964,17 +12936,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
|
|||
hash-base "^3.0.0"
|
||||
inherits "^2.0.1"
|
||||
|
||||
rollup-plugin-commonjs@^10.1.0:
|
||||
version "10.1.0"
|
||||
resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-10.1.0.tgz#417af3b54503878e084d127adf4d1caf8beb86fb"
|
||||
integrity sha512-jlXbjZSQg8EIeAAvepNwhJj++qJWNJw1Cl0YnOqKtP5Djx+fFGkp3WRh+W0ASCaFG5w1jhmzDxgu3SJuVxPF4Q==
|
||||
dependencies:
|
||||
estree-walker "^0.6.1"
|
||||
is-reference "^1.1.2"
|
||||
magic-string "^0.25.2"
|
||||
resolve "^1.11.0"
|
||||
rollup-pluginutils "^2.8.1"
|
||||
|
||||
rollup-plugin-postcss@3.1.8:
|
||||
version "3.1.8"
|
||||
resolved "https://registry.yarnpkg.com/rollup-plugin-postcss/-/rollup-plugin-postcss-3.1.8.tgz#d1bcaf8eb0fcb0936e3684c22dd8628d13a82fd1"
|
||||
|
@ -13016,7 +12977,7 @@ rollup-plugin-typescript2@0.29.0:
|
|||
resolve "1.17.0"
|
||||
tslib "2.0.1"
|
||||
|
||||
rollup-pluginutils@^2.8.1, rollup-pluginutils@^2.8.2:
|
||||
rollup-pluginutils@^2.8.2:
|
||||
version "2.8.2"
|
||||
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e"
|
||||
integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==
|
||||
|
|
Loading…
Reference in New Issue