Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/mini-css-extract-plugin/dist/loader.js

    r59329aa re29cc2e  
    8888      const exports = originalExports.__esModule ? originalExports.default : originalExports;
    8989      namedExport = // eslint-disable-next-line no-underscore-dangle
    90       originalExports.__esModule && !("locals" in originalExports.default);
     90      originalExports.__esModule && (!originalExports.default || !("locals" in originalExports.default));
    9191
    9292      if (namedExport) {
     
    109109        dependencies = [[null, exports]];
    110110      } else {
    111         dependencies = exports.map(([id, content, media, sourceMap]) => {
     111        dependencies = exports.map(([id, content, media, sourceMap, supports, layer]) => {
    112112          let identifier = id;
    113113          let context;
     
    129129            content: Buffer.from(content),
    130130            media,
     131            supports,
     132            layer,
    131133            sourceMap: sourceMap ? Buffer.from(JSON.stringify(sourceMap)) : // eslint-disable-next-line no-undefined
    132134            undefined
     
    165167  }
    166168
    167   if (optionsFromPlugin.experimentalUseImportModule) {
     169  if (typeof optionsFromPlugin.experimentalUseImportModule === "undefined" && typeof this.importModule === "function" || optionsFromPlugin.experimentalUseImportModule) {
    168170    if (!this.importModule) {
    169       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."));
     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."));
    170172      return;
    171173    }
    172174
    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}`, {
    174178      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);
    179183        return;
    180184      }
     
    307311
    308312
    309 function _default() {}
     313function _default(content) {
     314  console.log(content);
     315}
Note: See TracChangeset for help on using the changeset viewer.