Skip to content

Commit

Permalink
fix: internalize self
Browse files Browse the repository at this point in the history
  • Loading branch information
cha0s committed Feb 8, 2024
1 parent e36089a commit 38ea408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/build/build/fleck.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 38ea408

Please sign in to comment.