mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user