- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/mini-css-extract-plugin/dist/loader.js
r59329aa re29cc2e 88 88 const exports = originalExports.__esModule ? originalExports.default : originalExports; 89 89 namedExport = // eslint-disable-next-line no-underscore-dangle 90 originalExports.__esModule && !("locals" in originalExports.default);90 originalExports.__esModule && (!originalExports.default || !("locals" in originalExports.default)); 91 91 92 92 if (namedExport) { … … 109 109 dependencies = [[null, exports]]; 110 110 } else { 111 dependencies = exports.map(([id, content, media, sourceMap ]) => {111 dependencies = exports.map(([id, content, media, sourceMap, supports, layer]) => { 112 112 let identifier = id; 113 113 let context; … … 129 129 content: Buffer.from(content), 130 130 media, 131 supports, 132 layer, 131 133 sourceMap: sourceMap ? Buffer.from(JSON.stringify(sourceMap)) : // eslint-disable-next-line no-undefined 132 134 undefined … … 165 167 } 166 168 167 if ( optionsFromPlugin.experimentalUseImportModule) {169 if (typeof optionsFromPlugin.experimentalUseImportModule === "undefined" && typeof this.importModule === "function" || optionsFromPlugin.experimentalUseImportModule) { 168 170 if (!this.importModule) { 169 callback(new Error("You are using experimentalUseImportModulebut 'this.importModule' is not available in loader context. You need to have at least webpack 5.33.2."));171 callback(new Error("You are using 'experimentalUseImportModule' but 'this.importModule' is not available in loader context. You need to have at least webpack 5.33.2.")); 170 172 return; 171 173 } 172 174 173 this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!${request}`, { 175 const isAbsolutePublicPath = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(publicPath); 176 const publicPathForExtract = isAbsolutePublicPath ? publicPath : `${_utils.ABSOLUTE_PUBLIC_PATH}${publicPath.replace(/\./g, _utils.SINGLE_DOT_PATH_SEGMENT)}`; 177 this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!!!${request}`, { 174 178 layer: options.layer, 175 publicPath 176 }, (err , exports) => {177 if (err ) {178 callback(err );179 publicPath: publicPathForExtract 180 }, (error, exports) => { 181 if (error) { 182 callback(error); 179 183 return; 180 184 } … … 307 311 308 312 309 function _default() {} 313 function _default(content) { 314 console.log(content); 315 }
Note:
See TracChangeset
for help on using the changeset viewer.