@cocojs/cli 0.0.1-alpha.5 → 0.0.1-alpha.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.
|
@@ -295,11 +295,8 @@ var buildInConfig = {
|
|
|
295
295
|
importSource: '@cocojs/mvc'
|
|
296
296
|
}]]
|
|
297
297
|
}
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
console.log(source);
|
|
301
|
-
console.log('-------- SOURCE END ----------');
|
|
302
|
-
return source;
|
|
298
|
+
}, {
|
|
299
|
+
loader: require.resolve('../../runtime-config/debug-after-ts-loader.js')
|
|
303
300
|
}, {
|
|
304
301
|
loader: require.resolve('ts-loader'),
|
|
305
302
|
options: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocojs/cli",
|
|
3
3
|
"description": "命令行工具,支持开发和构建功能",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.6",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"webpack-cli": "^6.0.1",
|
|
44
44
|
"webpack-dev-server": "^5.2.0",
|
|
45
45
|
"webpack-merge": "^6.0.1",
|
|
46
|
-
"@cocojs/webpack-loader-mvc": "0.0.1-alpha.1",
|
|
47
46
|
"@cocojs/rollup-plugin-mvc": "0.0.1-alpha.3",
|
|
47
|
+
"@cocojs/webpack-loader-mvc": "0.0.1-alpha.1",
|
|
48
48
|
"@cocojs/type-extractor": "0.0.16"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module.exports = function debugAfterTsLoader(source) {
|
|
2
|
+
const resourcePath = this.resourcePath;
|
|
3
|
+
|
|
4
|
+
// 只打印你关心的文件,避免刷屏(可选)
|
|
5
|
+
if (resourcePath.includes('src/index')) {
|
|
6
|
+
console.log('======== debug-after-ts-loader ========');
|
|
7
|
+
console.log('FILE:', resourcePath);
|
|
8
|
+
console.log('-------- SOURCE START --------');
|
|
9
|
+
console.log(source);
|
|
10
|
+
console.log('-------- SOURCE END ----------');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return source;
|
|
14
|
+
};
|