refactor: Application modules to classes

This commit is contained in:
Igor Randjelovic
2023-05-10 22:08:01 +02:00
parent 7650cdd890
commit fc01f8e79f
50 changed files with 5438 additions and 2985 deletions

View File

@ -1,5 +1,7 @@
const webpack = require("@nativescript/webpack");
const CircularDependencyPlugin = require('circular-dependency-plugin');
module.exports = (env) => {
webpack.init(env);
@ -10,9 +12,25 @@ module.exports = (env) => {
Object.assign(args[0], {
__CI__: !!process.env.CI,
})
return args
})
config.plugin('CircularDependencyPlugin').use(CircularDependencyPlugin, [
{
// exclude detection of files based on a RegExp
// exclude: /a\.js|node_modules/,
// include specific files based on a RegExp
include: /application/,
// add errors to webpack instead of warnings
// failOnError: true,
// allow import cycles that include an asyncronous import,
// e.g. via import(/* webpackMode: "weak" */ './file.js')
// allowAsyncCycles: false,
// set the current working directory for displaying module paths
// cwd: process.cwd(),
}
])
})
return webpack.resolveConfig();