Skip to content

Commit

Permalink
refactor: removed JFACTORY_ENV_ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
jfactory-es committed Nov 3, 2024
1 parent 9c6b40f commit 4f79a4d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/build/rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,7 @@ const commonOutputES = function(devel = false) {
preserveModulesRoot: 'src',
dir: devel ? 'dist/es-devel' : 'dist/es',
banner: function(chunk) {
if (chunk.fileName === 'index.mjs') {
return devel ? bannerDevel : bannerProd;
} else {
if (chunk.fileName === 'jFactory-env.mjs') {
return 'globalThis.JFACTORY_ENV_ESM = 1;';
}

}
return chunk.fileName === 'index.mjs' ? devel ? bannerDevel : bannerProd : '';
},
...commonOutput
}
Expand Down

0 comments on commit 4f79a4d

Please sign in to comment.