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
1b75b6ab
Commit
1b75b6ab
authored
Aug 19, 2022
by
xuzhenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(custom): add babel to transform mathjs
parent
e8f0d8f8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
10 deletions
+36
-10
babel.config.json
packages/toolkit/babel.config.json
+16
-0
package.json
packages/toolkit/package.json
+3
-0
rollup.config.js
packages/toolkit/rollup.config.js
+9
-3
Payment.ts
packages/toolkit/src/Payment/Payment.ts
+2
-1
index.ts
packages/toolkit/src/index.ts
+2
-2
tsconfig.json
packages/toolkit/tsconfig.json
+4
-4
pnpm-lock.yaml
pnpm-lock.yaml
+0
-0
No files found.
packages/toolkit/babel.config.json
0 → 100644
View file @
1b75b6ab
{
"presets"
:
[
[
"@babel/preset-env"
,
{
"useBuiltIns"
:
"entry"
,
"corejs"
:
"3.22"
,
"targets"
:
{
"chrome"
:
"58"
,
"ie"
:
"11"
}
}
]
]
}
\ No newline at end of file
packages/toolkit/package.json
View file @
1b75b6ab
...
...
@@ -38,7 +38,10 @@
"regenerator-runtime"
:
"^0.13.9"
},
"devDependencies"
:
{
"@babel/core"
:
"^7.18.10"
,
"@babel/preset-env"
:
"^7.18.10"
,
"@jest/globals"
:
"^28.1.3"
,
"@rollup/plugin-babel"
:
"^5.3.1"
,
"@rollup/plugin-commonjs"
:
"^22.0.2"
,
"@rollup/plugin-json"
:
"^4.1.0"
,
"@rollup/plugin-node-resolve"
:
"^13.3.0"
,
...
...
packages/toolkit/rollup.config.js
View file @
1b75b6ab
...
...
@@ -2,6 +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'
;
export
default
[
{
...
...
@@ -14,6 +15,9 @@ export default [
typescript
()
]
},
/**
* umd 版本兼容es5
*/
{
input
:
'src/index.ts'
,
output
:
{
...
...
@@ -23,11 +27,12 @@ export default [
},
plugins
:
[
typescript
(),
commonjs
(),
json
(),
nodeResolve
({
dedupe
:
[
'mathjs'
]
})
}),
commonjs
(),
json
(),
babel
()
]
}
]
\ No newline at end of file
packages/toolkit/src/Payment/Payment.ts
View file @
1b75b6ab
...
...
@@ -336,4 +336,4 @@ export class Payment {
query
[
BACK_ORDER_ID
]
=
backOrderId
.
toString
()
return
`
${
path
}
?
${
qs
.
stringify
(
query
)}
`
}
}
}
\ No newline at end of file
packages/toolkit/src/index.ts
View file @
1b75b6ab
export
{
Payment
}
from
'./Payment/Payment'
\ No newline at end of file
export
{
Payment
}
from
'./Payment/Payment'
\ No newline at end of file
packages/toolkit/tsconfig.json
View file @
1b75b6ab
...
...
@@ -11,8 +11,8 @@
//
"disableReferencedProjectLoad"
:
true
,
/*
Reduce
the
number
of
projects
loaded
automatically
by
TypeScript.
*/
/*
Language
and
Environment
*/
"target"
:
"es
5
"
,
/*
Set
the
JavaScript
language
version
for
emitted
JavaScript
and
include
compatible
library
declarations.
*/
"lib"
:
[
"es
5
"
,
"DOM"
],
/*
Specify
a
set
of
bundled
library
declaration
files
that
describe
the
target
runtime
environment.
*/
"target"
:
"es
6
"
,
/*
Set
the
JavaScript
language
version
for
emitted
JavaScript
and
include
compatible
library
declarations.
*/
"lib"
:
[
"es
next
"
,
"DOM"
],
/*
Specify
a
set
of
bundled
library
declaration
files
that
describe
the
target
runtime
environment.
*/
//
"jsx"
:
"preserve"
,
/*
Specify
what
JSX
code
is
generated.
*/
//
"experimentalDecorators"
:
true
,
/*
Enable
experimental
support
for
TC
39
stage
2
draft
decorators.
*/
//
"emitDecoratorMetadata"
:
true
,
/*
Emit
design-type
metadata
for
decorated
declarations
in
source
files.
*/
...
...
@@ -54,9 +54,9 @@
"outDir"
:
"./dist"
,
/*
Specify
an
output
folder
for
all
emitted
files.
*/
//
"removeComments"
:
true
,
/*
Disable
emitting
comments.
*/
//
"noEmit"
:
true
,
/*
Disable
emitting
files
from
a
compilation.
*/
//
"importHelpers"
:
true
,
/*
Allow
importing
helper
functions
from
tslib
once
per
project
,
instead
of
including
them
per-file.
*/
"importHelpers"
:
true
,
/*
Allow
importing
helper
functions
from
tslib
once
per
project
,
instead
of
including
them
per-file.
*/
//
"importsNotUsedAsValues"
:
"remove"
,
/*
Specify
emit/checking
behavior
for
imports
that
are
only
used
for
types.
*/
//
"downlevelIteration"
:
true
,
/*
Emit
more
compliant
,
but
verbose
and
less
performant
JavaScript
for
iteration.
*/
"downlevelIteration"
:
true
,
/*
Emit
more
compliant
,
but
verbose
and
less
performant
JavaScript
for
iteration.
*/
//
"sourceRoot"
:
""
,
/*
Specify
the
root
path
for
debuggers
to
find
the
reference
source
code.
*/
//
"mapRoot"
:
""
,
/*
Specify
the
location
where
debugger
should
locate
map
files
instead
of
generated
locations.
*/
//
"inlineSourceMap"
:
true
,
/*
Include
sourcemap
files
inside
the
emitted
JavaScript.
*/
...
...
pnpm-lock.yaml
View file @
1b75b6ab
This diff is collapsed.
Click to expand it.
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