next-with-linaria 0.5.0 → 0.5.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.
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorPlugin = void 0;
4
- const fs_1 = require("fs");
5
4
  const webpack_1 = require("webpack");
6
5
  const utils_1 = require("../utils");
7
6
  const cssRegex = /\.linaria\.(module|global)\.css/;
@@ -16,17 +15,7 @@ class ErrorPlugin {
16
15
  });
17
16
  if (isLinariaRelated) {
18
17
  stats.compilation.errors = stats.compilation.errors.filter((err) => !cssRegex.test(err.message));
19
- const { cache, mode } = stats.compilation.compiler.options;
20
- let message = '🔄 The Linaria cache seems to be out of sync with the webpack cache, let me fix that for you...\n\n';
21
- if (mode === 'production') {
22
- message += 'Please restart the build process!';
23
- }
24
- else {
25
- message += 'Please restart the dev server!';
26
- }
27
- if (cache.cacheDirectory && (0, fs_1.existsSync)(cache.cacheDirectory)) {
28
- (0, fs_1.rmSync)(cache.cacheDirectory, { recursive: true, force: true });
29
- }
18
+ const message = '🔄 The Linaria cache seems to be out of sync with the webpack cache, please restart the server.\n For more details see: https://github.com/dlehmhus/next-with-linaria#good-to-know \n\n';
30
19
  stats.compilation.errors.push(new webpack_1.WebpackError(message));
31
20
  }
32
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errorPlugin.js","sourceRoot":"","sources":["../../src/plugins/errorPlugin.ts"],"names":[],"mappings":";;;AAAA,2BAAwC;AACxC,qCAAiD;AAEjD,oCAAqC;AAErC,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEnD,MAAa,WAAW;IACtB,KAAK,CAAC,QAAkB;QACtB,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;YACpD,IAAI,KAAK,CAAC,SAAS,EAAE,EAAE;gBACrB,IAAI,IAAA,iBAA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"mappings":";;;AAAA,qCAAiD;AAEjD,oCAAqC;AAErC,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEnD,MAAa,WAAW;IACtB,KAAK,CAAC,QAAkB;QACtB,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;YACpD,IAAI,KAAK,CAAC,SAAS,EAAE,EAAE;gBACrB,IAAI,IAAA,iBAAS,EAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;oBACvD,IAAI,gBAAgB,GAAG,KAAK,CAAC;oBAE7B,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;wBACtC,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;oBAClD,CAAC,CAAC,CAAC;oBAEH,IAAI,gBAAgB,EAAE;wBACpB,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CACxD,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CACrC,CAAC;wBAEF,MAAM,OAAO,GACX,yLAAyL,CAAC;wBAE5L,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,sBAAY,CAAC,OAAO,CAAC,CAAC,CAAC;qBAC1D;iBACF;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,kCAyBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-with-linaria",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Linaria support for Next.js 13 app directory feature",
5
5
  "main": "lib/webpackConfig.js",
6
6
  "scripts": {