chore: cleanup

This commit is contained in:
Nathan Walker
2025-07-22 19:06:58 -07:00
parent 0ba0ab0d59
commit b853447da2
16 changed files with 162 additions and 179 deletions

View File

@@ -12,7 +12,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
const entryPath = getEntryPath();
const virtualEntryPath = path.resolve(
__dirname,
'../stubs/virtual-entry-typescript.js'
`../stubs/virtual-entry-typescript.${env.commonjs ? 'js' : 'mjs'}`,
);
// exclude files starting with _ from require.context
@@ -23,7 +23,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
chainedSetAddAfter(
config.entry('bundle'),
'@nativescript/core/globals/index',
virtualEntryPath
virtualEntryPath,
);
config.when(env.hmr, (config) => {