Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-packages
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许振钊
ydl-packages
Commits
134d4564
Commit
134d4564
authored
Aug 19, 2022
by
xuzhenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(custom): rollup config
parent
c2f23630
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
13 deletions
+21
-13
pre.json
.changeset/pre.json
+2
-2
babel.config.json
packages/toolkit/babel.config.json
+1
-2
package.json
packages/toolkit/package.json
+1
-3
rollup.config.js
packages/toolkit/rollup.config.js
+17
-6
No files found.
.changeset/pre.json
View file @
134d4564
{
"mode"
:
"
exit
"
,
"mode"
:
"
pre
"
,
"tag"
:
"next"
,
"initialVersions"
:
{
"@ydl-packages/toolkit"
:
"1.0.1-next.
7
"
"@ydl-packages/toolkit"
:
"1.0.1-next.
8
"
},
"changesets"
:
[
"angry-carrots-rest"
,
...
...
packages/toolkit/babel.config.json
View file @
134d4564
...
...
@@ -3,8 +3,7 @@
[
"@babel/preset-env"
,
{
"useBuiltIns"
:
"entry"
,
"corejs"
:
"3.22"
,
"useBuiltIns"
:
false
,
"targets"
:
{
"chrome"
:
"58"
,
"ie"
:
"11"
...
...
packages/toolkit/package.json
View file @
134d4564
...
...
@@ -31,11 +31,9 @@
"dependencies"
:
{
"axios"
:
"^0.27.2"
,
"blueimp-md5"
:
"^2.19.0"
,
"consola"
:
"^2.15.3"
,
"js-cookie"
:
"^3.0.1"
,
"mathjs"
:
"^11.0.1"
,
"qs"
:
"^6.11.0"
,
"regenerator-runtime"
:
"^0.13.9"
"qs"
:
"^6.11.0"
},
"devDependencies"
:
{
"@babel/core"
:
"^7.18.10"
,
...
...
packages/toolkit/rollup.config.js
View file @
134d4564
...
...
@@ -2,7 +2,7 @@ import typescript from 'rollup-plugin-typescript2'
import
json
from
'@rollup/plugin-json'
;
import
commonjs
from
'@rollup/plugin-commonjs'
;
import
{
nodeResolve
}
from
'@rollup/plugin-node-resolve'
;
import
{
babel
}
from
'@rollup/plugin-babel'
;
import
{
babel
}
from
'@rollup/plugin-babel'
;
export
default
[
{
...
...
@@ -13,7 +13,8 @@ export default [
},
plugins
:
[
typescript
()
]
],
external
:
[
'axios'
,
'js-cookie'
,
'blueimp-md5'
,
'qs'
,
'mathjs'
]
},
/**
* umd 版本兼容es5
...
...
@@ -23,16 +24,25 @@ export default [
output
:
{
file
:
'dist/index.umd.js'
,
name
:
'YDLToolKit'
,
format
:
'umd'
format
:
'umd'
,
globals
:
{
qs
:
'qs'
,
axios
:
'axios'
,
'js-cookie'
:
'Cookies'
,
'blueimp-md5'
:
'md5'
}
},
plugins
:
[
typescript
(),
nodeResolve
({
dedupe
:
[
'mathjs'
]
browser
:
true
,
}),
commonjs
(),
json
(),
babel
()
]
babel
({
babelHelpers
:
'inline'
}),
],
external
:
[
'axios'
,
'js-cookie'
,
'blueimp-md5'
,
'qs'
]
}
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment