Skip to content

Commit 71a8257

Browse files
committed
Fix linting: Move path require to top of file
Move the require('path') statement to the top of serverWebpackConfig.js with other require statements to follow proper code organization.
1 parent 7fcef62 commit 71a8257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/webpack/serverWebpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The source code including full typescript support is available at:
22
// https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh/blob/master/config/webpack/serverWebpackConfig.js
33

4+
const path = require('path');
45
const { config } = require('shakapacker');
56
const commonWebpackConfig = require('./commonWebpackConfig');
67

@@ -47,7 +48,6 @@ const configureServer = () => {
4748
// config/initializers/react_on_rails.rb
4849
// Output to a private directory for SSR bundles (not in public/)
4950
// Using the default React on Rails path: ssr-generated
50-
const path = require('path');
5151
serverWebpackConfig.output = {
5252
filename: 'server-bundle.js',
5353
globalObject: 'this',

0 commit comments

Comments
 (0)