@opensumi/ide-dev-tool 3.4.5-next-1730119322.0 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-dev-tool",
3
- "version": "3.4.5-next-1730119322.0",
3
+ "version": "3.4.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:opensumi/core.git"
@@ -35,10 +35,10 @@
35
35
  "ts-loader": "^9.5.1",
36
36
  "tsconfig-paths": "^4.2.0",
37
37
  "tsconfig-paths-webpack-plugin": "^4.1.0",
38
- "typescript": "^5.6.3",
38
+ "typescript": "4.9.3",
39
39
  "webpack": "^5.90.0",
40
40
  "webpack-cli": "^5.1.4",
41
41
  "webpack-merge": "^5.10.0"
42
42
  },
43
- "gitHead": "1a26793fcfbbcbf32dfcc698eb7ed9fc9831143d"
43
+ "gitHead": "26f3ee057d0a1938de14a8977e12c2972f46c9e4"
44
44
  }
package/src/server.ts CHANGED
@@ -6,7 +6,7 @@ import Koa from 'koa';
6
6
  import KoaRouter from 'koa-router';
7
7
  import Static from 'koa-static';
8
8
 
9
- import { Injector } from '@opensumi/di';
9
+ import { Injector, Provider } from '@opensumi/di';
10
10
  import { Deferred } from '@opensumi/ide-core-common';
11
11
  import { IServerAppOpts, NodeModule, ServerApp } from '@opensumi/ide-core-node';
12
12
  import {
@@ -48,10 +48,6 @@ export async function startServer(
48
48
  }
49
49
  });
50
50
 
51
- router.get('/', (ctx) => {
52
- ctx.body = 'OpenSumi';
53
- });
54
-
55
51
  app.use(router.routes());
56
52
 
57
53
  if (options && options.mountStaticPath) {
package/src/webpack.js CHANGED
@@ -12,7 +12,6 @@ const { merge } = require('webpack-merge');
12
12
  const reactPath = path.resolve(path.join(__dirname, '../../../node_modules/react'));
13
13
  const reactDOMPath = path.resolve(path.join(__dirname, '../../../node_modules/react-dom'));
14
14
  const tsConfigPath = path.join(__dirname, '../../../tsconfig.json');
15
- const esmodulePath = path.join(__dirname, '../../../packages/notebook');
16
15
  const HOST = process.env.HOST || '0.0.0.0';
17
16
  const IDE_FRONT_PORT = process.env.IDE_FRONT_PORT || 8080;
18
17
 
@@ -46,9 +45,6 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
46
45
  cache: {
47
46
  type: 'filesystem',
48
47
  },
49
- experiments: {
50
- asyncWebAssembly: true, // 启用 WebAssembly 支持
51
- },
52
48
  resolve: {
53
49
  extensions: ['.ts', '.tsx', '.js', '.json', '.less'],
54
50
  plugins: [
@@ -68,7 +64,6 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
68
64
  child_process: false,
69
65
  url: false,
70
66
  fs: false,
71
- stream: false,
72
67
  },
73
68
  },
74
69
  bail: true,
@@ -80,26 +75,6 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
80
75
  rules: [
81
76
  {
82
77
  test: /\.tsx?$/,
83
- include: esmodulePath,
84
- use: [
85
- {
86
- loader: 'ts-loader',
87
- options: {
88
- happyPackMode: true,
89
- transpileOnly: true,
90
- configFile: tsConfigPath,
91
- compilerOptions: {
92
- module: 'esnext',
93
- moduleResolution: 'bundler',
94
- target: 'es2015',
95
- },
96
- },
97
- },
98
- ],
99
- },
100
- {
101
- test: /\.tsx?$/,
102
- exclude: esmodulePath,
103
78
  use: [
104
79
  {
105
80
  loader: 'ts-loader',
@@ -177,7 +152,7 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
177
152
  test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/,
178
153
  type: 'asset/resource',
179
154
  generator: {
180
- filename: 'fonts/[name][hash:8][ext][query]',
155
+ filename: 'fonts/[name][ext][query]',
181
156
  },
182
157
  },
183
158
  ],