File tree 1 file changed +3
-0
lines changed
packages/create-plugin/templates/common/.config/webpack
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import CopyWebpackPlugin from 'copy-webpack-plugin';
9
9
import ESLintPlugin from 'eslint-webpack-plugin' ;
10
10
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin' ;
11
11
import path from 'path' ;
12
+ import { fileURLToPath } from 'node:url' ;
12
13
import ReplaceInFileWebpackPlugin from 'replace-in-file-webpack-plugin' ;
13
14
import TerserPlugin from 'terser-webpack-plugin' ;
14
15
import { SubresourceIntegrityPlugin } from "webpack-subresource-integrity" ;
@@ -38,6 +39,8 @@ export type Env = {
38
39
[ key : string ] : true | string | Env ;
39
40
} ;
40
41
42
+ const __filename = fileURLToPath ( import . meta. url ) ;
43
+
41
44
const config = async ( env : Env ) : Promise < Configuration > => {
42
45
const baseConfig : Configuration = {
43
46
cache : {
You can’t perform that action at this time.
0 commit comments