Skip to content

Commit c297f8a

Browse files
committed
trim webpack config specific to L.CAD
1 parent 072467e commit c297f8a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/generators/lightning_cad/webpack_generator.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ def add_resolve_aliases
4545
// Webpack apparently doesn't support the * in package.imports, so we need to duplicate
4646
// package.imports here for webpack.
4747
'#components': path.resolve('app/javascript/components'),
48-
'#shared': path.resolve('app/javascript/shared'),
49-
'#three': path.resolve('app/javascript/config/extensions/three.js')
48+
'#shared': path.resolve('app/javascript/shared')
5049
},
5150
JS
5251

@@ -70,13 +69,6 @@ def add_loaders
7069
insert_into_file 'webpack.config.js', loaders, after: "rules: [\n"
7170
end
7271

73-
def update_esbuild_loader
74-
say 'Updating esbuild loader in the config'
75-
76-
insert_into_file 'webpack.config.js', " include: /app\\/javascript|@rolemodel\\/lightning-cad/,\n", before: " loader: 'esbuild-loader',"
77-
gsub_file 'webpack.config.js', 'es2021', 'esnext'
78-
end
79-
8072
def add_terser_plugin_options
8173
say 'Updating the terser plugin options in the config'
8274

0 commit comments

Comments
 (0)