Skip to content

Commit

Permalink
fix(@ice/app): requireHook in createService
Browse files Browse the repository at this point in the history
  • Loading branch information
linbudu599 committed Nov 7, 2023
1 parent 4a7340a commit 54a8009
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-coats-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ice/app': patch
---

move require hijack to createService
2 changes: 0 additions & 2 deletions packages/ice/bin/ice-cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import fse from 'fs-extra';
import { fileURLToPath } from 'url';
import { program, Option } from 'commander';
import yargsParser from 'yargs-parser';
// hijack webpack before import other modules
import '../esm/requireHook.js';
import createService from '../esm/createService.js';
import { TARGETS, WEB } from '../esm/constant.js';

Expand Down
2 changes: 2 additions & 0 deletions packages/ice/src/createService.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// hijack webpack before import other modules
import './requireHook.js';
import * as path from 'path';
import { fileURLToPath } from 'url';
import { createRequire } from 'module';
Expand Down

0 comments on commit 54a8009

Please sign in to comment.