Skip to content

Commit 29fe167

Browse files
committed
fix
1 parent e7e25ef commit 29fe167

File tree

5 files changed

+13
-30
lines changed

5 files changed

+13
-30
lines changed
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { defineConfig } from "@rspack/cli";
1+
import { defineConfig } from '@rspack/cli';
22

33
export default defineConfig({
4-
mode: "production",
4+
mode: 'production',
55
entry: {
6-
index: "./src/index.js",
6+
index: './src/index.js',
77
},
8-
externalsType: "module-import",
8+
externalsType: 'module-import',
99
output: {
1010
module: true,
11-
chunkFormat: "module",
11+
chunkFormat: 'module',
1212
library: {
13-
type: "modern-module",
13+
type: 'modern-module',
1414
},
1515
chunkLoading: 'import',
1616
workerChunkLoading: 'import',
@@ -27,7 +27,4 @@ export default defineConfig({
2727
avoidEntryIife: true,
2828
minimize: false, // no need to minify for library
2929
},
30-
experiments: {
31-
outputModule: true
32-
},
3330
});

rspack/react-refresh-esm/rspack.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const config = {
1616
resolve: {
1717
extensions: ['...', '.ts', '.tsx', '.jsx'],
1818
},
19-
experiments: {
20-
outputModule: true,
21-
},
2219
module: {
2320
rules: [
2421
{

rspack/react-ssr-esm/rspack.config.client.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ export default {
3131
},
3232
target: 'web',
3333
plugins: [new RspackManifestPlugin()],
34-
experiments: {
35-
outputModule: true,
36-
},
3734
};

rspack/react-ssr-esm/rspack.config.server.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
import path from 'path'
2-
import rspack from '@rspack/core'
3-
import { fileURLToPath } from 'url'
4-
import { dirname } from 'path'
1+
import rspack from '@rspack/core';
2+
import path, { dirname } from 'path';
3+
import { fileURLToPath } from 'url';
54

6-
const __filename = fileURLToPath(import.meta.url)
7-
const __dirname = dirname(__filename)
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
87

98
export default {
109
name: 'server',
1110
entry: {
1211
server: path.resolve(__dirname, 'server', 'server.ts'),
1312
},
1413
mode: 'production',
15-
experiments: {
16-
outputModule: true,
17-
},
1814
output: {
1915
module: true,
2016
path: path.resolve(__dirname, 'dist'),
@@ -29,7 +25,7 @@ export default {
2925
rules: [
3026
{
3127
test: /\.tsx?$/,
32-
loader: "builtin:swc-loader",
28+
loader: 'builtin:swc-loader',
3329
},
3430
],
3531
},
@@ -38,7 +34,6 @@ export default {
3834
__dirname: false,
3935
__filename: false,
4036
},
41-
4237
plugins: [
4338
new rspack.BannerPlugin({
4439
banner: `
@@ -53,4 +48,4 @@ const __dirname = __rspack_dirname(__filename);
5348
patterns: [{ context: 'server', from: 'views', to: 'views' }],
5449
}),
5550
],
56-
}
51+
};

rspack/wasm-simple/rspack.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ const config = {
77
output: {
88
webassemblyModuleFilename: '[hash].wasm',
99
},
10-
experiments: {
11-
asyncWebAssembly: true,
12-
},
1310
plugins: [new rspack.HtmlRspackPlugin()],
1411
};
1512
module.exports = config;

0 commit comments

Comments
 (0)