@opensumi/ide-dev-tool 3.5.1-next-1731490907.0 → 3.5.1-next-1731636910.0

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/webpack.js +23 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-dev-tool",
3
- "version": "3.5.1-next-1731490907.0",
3
+ "version": "3.5.1-next-1731636910.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:opensumi/core.git"
@@ -33,10 +33,10 @@
33
33
  "ts-loader": "^9.5.1",
34
34
  "tsconfig-paths": "^4.2.0",
35
35
  "tsconfig-paths-webpack-plugin": "^4.1.0",
36
- "typescript": "4.9.3",
36
+ "typescript": "^5.6.3",
37
37
  "webpack": "^5.90.0",
38
38
  "webpack-cli": "^5.1.4",
39
39
  "webpack-merge": "^5.10.0"
40
40
  },
41
- "gitHead": "9f65fcdc7a208ca71d86413ad442e35fc63f4aa3"
41
+ "gitHead": "b9e938184b0d31e0d541997751a7f2d869190fbb"
42
42
  }
package/src/webpack.js CHANGED
@@ -12,6 +12,7 @@ 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');
15
16
  const HOST = process.env.HOST || '0.0.0.0';
16
17
  const IDE_FRONT_PORT = process.env.IDE_FRONT_PORT || 8080;
17
18
 
@@ -67,6 +68,7 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
67
68
  child_process: false,
68
69
  url: false,
69
70
  fs: false,
71
+ stream: false,
70
72
  },
71
73
  },
72
74
  bail: true,
@@ -78,6 +80,26 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
78
80
  rules: [
79
81
  {
80
82
  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,
81
103
  use: [
82
104
  {
83
105
  loader: 'ts-loader',
@@ -155,7 +177,7 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
155
177
  test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/,
156
178
  type: 'asset/resource',
157
179
  generator: {
158
- filename: 'fonts/[name][ext][query]',
180
+ filename: 'fonts/[name][hash:8][ext][query]',
159
181
  },
160
182
  },
161
183
  ],