File tree Expand file tree Collapse file tree 4 files changed +303
-23
lines changed
demos/example-electron-node Expand file tree Collapse file tree 4 files changed +303
-23
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ import type ICopyPlugin from 'copy-webpack-plugin';
1616
1717dotenv . config ( { path : '.env.local' } ) ;
1818
19- const require = createRequire ( import . meta. url ) ;
20-
2119const ForkTsCheckerWebpackPlugin : typeof IForkTsCheckerWebpackPlugin = require ( 'fork-ts-checker-webpack-plugin' ) ;
2220const CopyPlugin : typeof ICopyPlugin = require ( 'copy-webpack-plugin' ) ;
2321const DefinePluginImpl : typeof DefinePlugin = require ( 'webpack' ) . DefinePlugin ;
Original file line number Diff line number Diff line change 1+ require ( 'tsx/cjs' ) ;
2+
3+ module . exports = require ( './config.ts' ) ;
4+
Original file line number Diff line number Diff line change 3434 "style-loader" : " ^3.3.4" ,
3535 "ts-loader" : " ^9.5.2" ,
3636 "ts-node" : " ^10.9.2" ,
37+ "tsx" : " ^4.19.3" ,
3738 "typescript" : " ^5.8.2" ,
3839 "webpack" : " ^5.90.1"
3940 },
You can’t perform that action at this time.
0 commit comments