File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ import configOverrides from '../../../../config/emulsify-core/storybook/main.js'
1717 * The full path to the current file (ESM compatible).
1818 * @type {string }
1919 */
20- const __filename = fileURLToPath ( import . meta. url ) ;
20+ const _filename = fileURLToPath ( import . meta. url ) ;
2121
2222/**
2323 * The directory name of the current module file.
2424 * @type {string }
2525 */
26- const __dirname = path . dirname ( __filename ) ;
26+ const _dirname = path . dirname ( _filename ) ;
2727
2828/**
2929 * Safely apply any user-provided overrides or fall back to an empty object.
@@ -204,7 +204,7 @@ const config = {
204204
205205 // load external manager-head.html if present
206206 const externalManagerHeadPath = resolve (
207- __dirname ,
207+ _dirname ,
208208 '../../../../config/emulsify-core/storybook/manager-head.html'
209209 ) ;
210210 let externalManagerHtml = '' ;
@@ -224,7 +224,7 @@ ${externalManagerHtml}`;
224224 */
225225 previewHead : ( head ) => {
226226 const externalHeadPath = resolve (
227- __dirname ,
227+ _dirname ,
228228 '../../../../config/emulsify-core/storybook/preview-head.html'
229229 ) ;
230230
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const ImageMinimizer = new ImageMinimizerPlugin({
55 implementation : ImageMinimizerPlugin . imageminMinify ,
66 options : {
77 plugins : [
8- [ 'gifsicle' , { interlaced : true } ] ,
98 [ 'jpegtran' , { progressive : true } ] ,
109 [ 'optipng' , { optimizationLevel : 5 } ] ,
1110 ] ,
Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ import emulsifyConfig from '../../../../../project.emulsify.json' with { type: '
1212 * Resolve the directory of this file (without fileURLToPath).
1313 * @type {string }
1414 */
15- let __filename = decodeURIComponent ( new URL ( import . meta. url ) . pathname ) ;
16- if ( process . platform === 'win32' && __filename . startsWith ( '/' ) ) {
17- __filename = __filename . slice ( 1 ) ;
15+ let _filename = decodeURIComponent ( new URL ( import . meta. url ) . pathname ) ;
16+ if ( process . platform === 'win32' && _filename . startsWith ( '/' ) ) {
17+ _filename = _filename . slice ( 1 ) ;
1818}
19- const __dirname = dirname ( __filename ) ;
19+ const _dirname = dirname ( _filename ) ;
2020
2121/**
2222 * Root of the project (three levels up from this file).
2323 * @type {string }
2424 */
25- const projectDir = resolve ( __dirname , '../../../../..' ) ;
25+ const projectDir = resolve ( _dirname , '../../../../..' ) ;
2626
2727/**
2828 * Where your source files live (if you have a `/src` folder).
You can’t perform that action at this time.
0 commit comments