Skip to content

Commit e36c0d0

Browse files
committed
Update.
1 parent 6f6f597 commit e36c0d0

File tree

6 files changed

+427
-1492
lines changed

6 files changed

+427
-1492
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
es6: true
66
node: true
77

8+
parserOptions:
9+
ecmaVersion: 2019
10+
811
rules:
912
array-bracket-spacing: [2, never]
1013
arrow-parens: [2, as-needed]

dist/kjua.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ghu.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,8 @@ ghu.task('clean', () => {
2323
});
2424

2525
ghu.task('build:script', runtime => {
26-
const webpackConfig = {
27-
mode: 'none',
28-
output: {
29-
library: NAME,
30-
libraryTarget: 'umd',
31-
umdNamedDefine: true,
32-
globalObject: '(typeof self !== \'undefined\' ? self : this)'
33-
},
34-
module: {
35-
rules: [
36-
{
37-
include: [SRC],
38-
loader: 'babel-loader',
39-
query: {
40-
cacheDirectory: true,
41-
presets: ['@babel/preset-env']
42-
}
43-
}
44-
]
45-
}
46-
};
47-
4826
return read(`${SRC}/${NAME}.js`)
49-
.then(webpack(webpackConfig, {showStats: false}))
27+
.then(webpack(webpack.cfg_umd(NAME, [SRC]), {showStats: false}))
5028
.then(includeit())
5129
.then(uglify())
5230
.then(wrap(runtime.commentJs))

0 commit comments

Comments
 (0)