Skip to content

Commit 3d5fe94

Browse files
committed
Update node-main for webpack 5
1 parent 7ebd823 commit 3d5fe94

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

components/src/node-main/webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ const package = PACKAGE(
77
__dirname // our directory
88
);
99

10-
package.output.libraryTarget = 'this'; // make node-main.js exports available to caller
10+
// make node-main.js exports available to caller
11+
package.output.library = {
12+
name: 'init',
13+
type: 'commonjs',
14+
export: 'init'
15+
};
1116

1217
module.exports = package;

0 commit comments

Comments
 (0)