fix: internalize self

This commit is contained in:
cha0s 2024-02-07 19:33:47 -06:00
parent e36089a19b
commit 38ea408ba3

View File

@ -36,7 +36,8 @@ const resolveValidModulePath = (source) => (path) => {
module.exports = async (env, argv, flecks) => {
const config = await configFn(env, argv, flecks);
config.externals = await externals();
const {name} = require(join(FLECKS_CORE_ROOT, 'package.json'));
config.externals = await externals({allowlist: [new RegExp(`^${name}`)]});
config.output.path = join(FLECKS_CORE_ROOT, 'dist', 'fleck');
config.plugins.push(
new CopyPlugin({