Skip to content

Commit dee641c

Browse files
committed
Update.
1 parent 8972b9d commit dee641c

File tree

5 files changed

+292
-1100
lines changed

5 files changed

+292
-1100
lines changed

dist/modulejs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! modulejs v2.5.0 - https://larsjung.de/modulejs/ */
1+
/*! modulejs v2.6.0 - https://larsjung.de/modulejs/ */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();

dist/modulejs.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ghu.js

+1-23
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: [LIB],
38-
loader: 'babel-loader',
39-
query: {
40-
cacheDirectory: true,
41-
presets: ['@babel/preset-env']
42-
}
43-
}
44-
]
45-
}
46-
};
47-
4826
return read(`${LIB}/${NAME}.js`)
49-
.then(webpack(webpackConfig, {showStats: false}))
27+
.then(webpack(webpack.cfg_umd(NAME, [LIB]), {showStats: false}))
5028
.then(wrap(runtime.commentJs))
5129
.then(write(`${DIST}/${NAME}.js`, {overwrite: true}))
5230
.then(write(`${BUILD}/${NAME}-${runtime.pkg.version}.js`, {overwrite: true}))

0 commit comments

Comments
 (0)