rsnext/packages/next/compiled/mini-css-extract-plugin/index.js

1 line
20 KiB
JavaScript
Raw Normal View History

module.exports=(()=>{"use strict";var e={798:e=>{e.exports=JSON.parse('{"title":"Mini CSS Extract Plugin options","type":"object","additionalProperties":false,"properties":{"filename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"This option determines the name of each output CSS file.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#filename"},"chunkFilename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"This option determines the name of non-entry chunk files.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename"},"experimentalUseImportModule":{"type":"boolean","description":"Enable the experimental importModule approach instead of using child compilers. This uses less memory and is faster.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#experimentaluseimportmodule"},"ignoreOrder":{"type":"boolean","description":"Remove Order Warnings.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"},"insert":{"description":"Inserts the `link` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"attributes":{"description":"Adds custom attributes to the `link` tag for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#attributes","type":"object"},"linkType":{"anyOf":[{"enum":["text/css"]},{"type":"boolean"}],"description":"This option allows loading asynchronous chunks with a custom link type","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#linktype"},"runtime":{"type":"boolean","description":"Enabled/Disables runtime generation. CSS will be still extracted and can be used for a custom loading methods.","link":"https://github.com/webpack-contrib/mini-css-extract-plugin#noRuntime"}}}')},105:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.pluginSymbol=t.pluginName=t.default=void 0;var i=n(286);var s=_interopRequireDefault(n(798));var r=n(958);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o="mini-css-extract-plugin";t.pluginName=o;const a=Symbol(o);t.pluginSymbol=a;const l="[name].css";const u=new Set([r.MODULE_TYPE]);const d={sources:new Map,runtimeRequirements:new Set};const c=new WeakMap;const p=new WeakMap;const h=new WeakSet;class MiniCssExtractPlugin{static getCssModule(e){if(c.has(e)){return c.get(e)}class CssModule extends e.Module{constructor({context:e,identifier:t,identifierIndex:n,content:i,layer:s,supports:o,media:a,sourceMap:l,assets:u,assetsInfo:d}){super(r.MODULE_TYPE,e);this.id="";this._context=e;this._identifier=t;this._identifierIndex=n;this.content=i;this.layer=s;this.supports=o;this.media=a;this.sourceMap=l;this.assets=u;this.assetsInfo=d;this._needBuild=true}size(){return this.content.length}identifier(){return`css|${this._identifier}|${this._identifierIndex}`}readableIdentifier(e){return`css ${e.shorten(this._identifier)}${this._identifierIndex?` (${this._identifierIndex})`:""}`}getSourceTypes(){return u}codeGeneration(){return d}nameForCondition(){const e=this._identifier.split("!").pop();const t=e.indexOf("?");if(t>=0){return e.substring(0,t)}return e}updateCacheModule(e){if(this.content!==e.content||this.layer!==e.layer||this.supports!==e.supports||this.media!==e.media||this.sourceMap!==e.sourceMap||this.assets!==e.assets||this.assetsInfo!==e.assetsInfo){this._needBuild=true;this.content=e.content;this.layer=e.layer;this.supports=e.supports;this.media=e.media;this.sourceMap=e.sourceMap;this.assets=e.assets;this.assetsInfo=e.assetsInfo}}needRebuild(){return this._needBuild}needBuild(e,t){t(null,this._needBuild)}build(e,t,n,i,s){this.buildInfo={assets:this.assets,assetsInfo:this.assetsInfo,cacheable:true,hash:this._computeHash(t.outputOptions.hashFunction)};this.buildMeta={};this._needBuild=false;s()}_comp