5htp 0.4.6-4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.4.6
|
|
4
|
+
"version": "0.4.6",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"@types/universal-analytics": "^0.4.5",
|
|
40
40
|
"@types/webpack-env": "^1.16.2",
|
|
41
41
|
"@types/ws": "^7.4.7",
|
|
42
|
-
"babel-loader": "^10.0.0",
|
|
43
42
|
"babel-plugin-glob-import": "^0.0.9-1",
|
|
44
43
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
45
44
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
@@ -89,6 +88,7 @@
|
|
|
89
88
|
"@types/node": "^16.9.1",
|
|
90
89
|
"@types/nodemailer": "^6.4.4",
|
|
91
90
|
"@types/prompts": "^2.0.14",
|
|
92
|
-
"@types/webpack-env": "^1.16.2"
|
|
91
|
+
"@types/webpack-env": "^1.16.2",
|
|
92
|
+
"babel-loader": "^10.0.0"
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -42,25 +42,7 @@ module.exports = (app: App, side: TAppSide, dev: boolean): webpack.RuleSetRule[]
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
return [{
|
|
45
|
-
loader:
|
|
46
|
-
exclude: (filePath) => {
|
|
47
|
-
// 1) If not in "node_modules" at all => transpile it
|
|
48
|
-
if (!filePath.includes('node_modules')) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// 2) If it’s "node_modules/5htp-core" but NOT "node_modules/5htp-core/node_modules",
|
|
53
|
-
// then transpile. Otherwise, exclude.
|
|
54
|
-
if (
|
|
55
|
-
filePath.includes('node_modules/5htp-core') &&
|
|
56
|
-
!filePath.includes('node_modules/5htp-core/node_modules')
|
|
57
|
-
) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// 3) Everything else in node_modules is excluded
|
|
62
|
-
return true;
|
|
63
|
-
},
|
|
45
|
+
loader: 'babel-loader',
|
|
64
46
|
options: {
|
|
65
47
|
|
|
66
48
|
// https://github.com/babel/babel-loader#options
|
package/src/compiler/index.ts
CHANGED
|
@@ -147,8 +147,7 @@ export default class Compiler {
|
|
|
147
147
|
// The last override the first if there are duplicates
|
|
148
148
|
'@server/services/': path.join(cli.paths.core.src, 'server', 'services'),
|
|
149
149
|
'@/server/services/': path.join(app.paths.src, 'server', 'services'),
|
|
150
|
-
|
|
151
|
-
//'': path.join(app.paths.root, 'node_modules'),
|
|
150
|
+
'': path.join(app.paths.root, 'node_modules'),
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
const servicesIndex: {[id: string]: TServiceMetas} = {};
|
|
@@ -147,8 +147,7 @@ export default function createCompiler( app: App, mode: TCompileMode ): webpack.
|
|
|
147
147
|
cli.paths.core.root + '/src/server',
|
|
148
148
|
|
|
149
149
|
// Complle 5HTP modules so they can refer to the framework instance and aliases
|
|
150
|
-
|
|
151
|
-
//...getCorePluginsList(app)
|
|
150
|
+
...getCorePluginsList(app)
|
|
152
151
|
],
|
|
153
152
|
rules: require('../common/babel')(app, 'server', dev)
|
|
154
153
|
},
|