@lark-apaas/fullstack-rspack-preset 1.0.58-alpha.0 → 1.0.58-alpha.1
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.
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* 替换后的字符串里没有 process.env.X 形式,DefinePlugin 不会再二次替换。
|
|
11
11
|
*/
|
|
12
12
|
module.exports = function basenameInjectionLoader(source) {
|
|
13
|
+
console.log(`[BasenameInjectionLoader] processing: ${this.resourcePath}`);
|
|
13
14
|
const options = (typeof this.getOptions === 'function' ? this.getOptions() : this.query) || {};
|
|
14
15
|
const envBasePath = options.envBasePath || '';
|
|
15
16
|
if (typeof source !== 'string' || !source.includes('process.env.CLIENT_BASE_PATH')) {
|
|
@@ -93,6 +93,7 @@ class BasenameInjectionPlugin {
|
|
|
93
93
|
? resolveEntryFiles(entry, context)
|
|
94
94
|
: [];
|
|
95
95
|
const entryTest = buildEntryTest(entryFiles);
|
|
96
|
+
console.log(`[${PLUGIN_NAME}] entryTest: ${entryTest}, entryFiles: ${JSON.stringify(entryFiles)}, loaderPath: ${loaderPath}`);
|
|
96
97
|
if (!compiler.options.module) {
|
|
97
98
|
compiler.options.module = { rules: [] };
|
|
98
99
|
}
|