Skip to content

Commit 9ea28f4

Browse files
linting
1 parent a2467a7 commit 9ea28f4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

node_package/src/RSCWebpackLoader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ const { pathToFileURL } = require('url');
33
const RSCWebpackLoader = async function Loader(source, sourceMap) {
44
// Mark loader as async since we're doing async operations
55
const callback = this.async();
6-
6+
77
try {
88
// Convert file path to URL format
99
const fileUrl = pathToFileURL(this.resourcePath).href;
1010

11+
// eslint-disable-next-line import/no-unresolved
1112
const { load } = await import('react-server-dom-webpack/node-loader');
1213
const result = await load(fileUrl, null, async () => ({
1314
format: 'module',
1415
source,
1516
}));
16-
17+
1718
callback(null, result.source, sourceMap);
1819
} catch (error) {
1920
callback(error);

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"incremental": true,
1212
"target": "es5"
1313
},
14-
"include": ["node_package/src/**/*"],
14+
"include": [
15+
"node_package/src/**/*",
16+
"node_package/types/**/*"
17+
],
1518
"exclude": ["node_package/src/RSCWebpackLoader.js"]
1619
}

0 commit comments

Comments
 (0)