Skip to content

Commit

Permalink
chore: save
Browse files Browse the repository at this point in the history
  • Loading branch information
HomyeeKing committed Jan 7, 2025
1 parent 4fc1d06 commit 76ea85b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
9 changes: 5 additions & 4 deletions packages/ice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"dependencies": {
"@ice/bundles": "workspace:*",
"@ice/route-manifest": "workspace:*",
"@ice/rspack-config": "workspace:*",
"@ice/runtime": "workspace:^",
"@ice/shared-config": "workspace:*",
"@ice/webpack-config": "workspace:*",
"@ice/rspack-config": "workspace:*",
"@swc/helpers": "0.5.1",
"@types/express": "^4.17.14",
"address": "^1.1.2",
Expand Down Expand Up @@ -82,6 +82,8 @@
"yargs-parser": "^21.1.1"
},
"devDependencies": {
"@rspack/core": "0.5.7",
"@rspack/dev-server": "0.5.7",
"@types/babel__generator": "^7.6.4",
"@types/babel__traverse": "^7.17.1",
"@types/cross-spawn": "^6.0.2",
Expand All @@ -95,11 +97,10 @@
"react": "^18.2.0",
"react-router": "6.21.3",
"sass": "^1.50.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"unplugin": "^1.6.0",
"webpack": "^5.88.0",
"webpack-dev-server": "4.15.0",
"@rspack/core": "0.5.7",
"@rspack/dev-server": "0.5.7"
"webpack-dev-server": "4.15.0"
},
"peerDependencies": {
"react": ">=18.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ice/src/service/webpackServerCompiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createRequire } from 'module';
import { fileURLToPath } from 'url';
import { esbuild } from '@ice/bundles';
import TerserPlugin from '@ice/bundles/compiled/terser-webpack-plugin/index.js';
import TsconfigPathsPlugin from '@ice/bundles/compiled/tsconfig-paths-webpack-plugin/index.js';
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
import webpack from 'webpack';
import { logger } from '../../utils/logger.js';

Expand Down Expand Up @@ -67,7 +67,7 @@ export class WebpackServerCompiler {
{
// // Match `.js`, `.jsx`, `.ts` or `.tsx` files
test: /\.m?[jt]sx?$/,
loader: require.resolve('@ice/bundles/compiled/esbuild-loader'),
loader: 'esbuild-loader',
// available options: https://github.com/evanw/esbuild/blob/88821b7e7d46737f633120f91c65f662eace0bcf/lib/shared/types.ts#L158-L172
options: {
target: options.target,
Expand Down
15 changes: 9 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76ea85b

Please sign in to comment.