Commit 72871685 authored by nanahira's avatar nanahira

update webpack

parent 3d987852
Pipeline #6849 passed with stages
in 2 minutes and 17 seconds
const path = require('path'); const path = require('path');
const packgeInfo = require('./package.json');
function externalsFromDep() {
return Object.fromEntries(
Object.keys(packgeInfo.dependencies)
.filter((dep) => dep !== 'source-map-support')
.map((dep) => [dep, dep]),
);
}
const packAll = !!process.env.PACK_ALL; const packAll = !!process.env.PACK_ALL;
...@@ -29,13 +38,6 @@ module.exports = { ...@@ -29,13 +38,6 @@ module.exports = {
}, },
externals: { externals: {
koishi: 'koishi', koishi: 'koishi',
...(packAll ...(packAll ? {} : externalsFromDep()),
? {}
: {
'koishi-thirdeye': 'koishi-thirdeye',
'class-transformer': 'class-transformer',
moment: 'moment',
lodash: 'lodash',
}),
}, },
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment