1.0.30 • Published 2 years ago
extjs-class-loader v1.0.30
Ext.js Loader for Webpack
Based on https://www.npmjs.com/package/extjs-loader
Install
npm install --save-dev extjs-class-loader
Usage
The extjs-class-loader
interprets:
Ext.define
propertiesrequires
,uses
,mixins
configs likerequires
.Ext.application
propertycontrollers
Ext.define
of controller propertystores
Use the loader either via your webpack config, CLI or inline.
Via webpack config (recommended)
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.js/,
use: [
{
loader: 'extjs-class-loader',
options : {
debug: true,
paths: {
'Deft': false,
'Ext.ux': 'utils/ux',
'Ext': false,
'Override': path.resolve('app/overrides'),
'MyApp': path.resolve('app/src')
},
imports: false,
extentions : ['js', 'ts']
}
} ]
}
]
}
}
Options
Name | Default value | Description |
---|---|---|
debug | false | Print status messages for debugging purpose |
paths | {} | Define your loader config here. I.e. define how the namespaces in your app should be resolved. If false value is used then the given namespace is ignored. It is useful when you include that namespace on other way. E.g. if you include Ext-debug-all.js in your HTML then you do not want to include individual components. |
extentions | ['js'] | Array of Defines extentions of included files. Loader will check, that file is exists before include |
imports | false | Use import statement instead of require |
sourceType | module | Type of source for parsing by esprima. |
encoding | utf-8 | Encoding of source codes |
History
v0.0.1
Initial release to process project files
v0.0.2
Support for extjs-parser to allow processing of Ext.js sdk dependencies
v1.0.0
Removed support of extjs-parser. Full refactoring of loader.
v1.0.1
Added tests for various situations
v1.0.19
Added ability to parse files with different sourceType of esprima Added ability to use imports instead of require Added ability to set array of supported files extentions
1.0.30
2 years ago
1.0.29
3 years ago
1.0.28
3 years ago
1.0.27
3 years ago
1.0.22
3 years ago
1.0.26
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.19
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago