|
| 1 | +diff --git a/configs/rollup.config.mjs b/configs/rollup.config.mjs |
| 2 | +index b6201dbff88ca2e2ee2f67a244d7e6bb2423c132..de93dcf662e9a52e3186ee38d0405e4dfb6ccf1f 100644 |
| 3 | +--- a/configs/rollup.config.mjs |
| 4 | ++++ b/configs/rollup.config.mjs |
| 5 | +@@ -158,7 +158,11 @@ export default async args => { |
| 6 | + minimize: production, |
| 7 | + plugins: [postcssImport(), postcssUrl({ url: "inline" })], |
| 8 | + sourceMap: !production ? "inline" : false, |
| 9 | +- use: ["sass"] |
| 10 | ++ use: { |
| 11 | ++ sass: { |
| 12 | ++ silenceDeprecations: ['legacy-js-api'], |
| 13 | ++ } |
| 14 | ++ }, |
| 15 | + }), |
| 16 | + ...getCommonPlugins({ |
| 17 | + sourceMaps: !production, |
| 18 | +@@ -354,7 +358,11 @@ export function postCssPlugin(outputFormat, production, postcssPlugins = []) { |
| 19 | + ...postcssPlugins |
| 20 | + ], |
| 21 | + sourceMap: !production ? "inline" : false, |
| 22 | +- use: ["sass"], |
| 23 | ++ use: { |
| 24 | ++ sass: { |
| 25 | ++ silenceDeprecations: ['legacy-js-api'], |
| 26 | ++ } |
| 27 | ++ }, |
| 28 | + to: join(outDir, `${outWidgetFile}.css`) |
| 29 | + }); |
| 30 | + } |
| 31 | +diff --git a/test-config/jest.config.js b/test-config/jest.config.js |
| 32 | +index 3df733c122ed816ef62f701559362baef1936dbe..9dab9730eafb1fe1e3efe4db84ff6a8833c3811f 100644 |
| 33 | +--- a/test-config/jest.config.js |
| 34 | ++++ b/test-config/jest.config.js |
| 35 | +@@ -26,7 +26,7 @@ module.exports = { |
| 36 | + "react-hot-loader/root": join(__dirname, "__mocks__/hot") |
| 37 | + }, |
| 38 | + moduleDirectories: ["node_modules", join(projectDir, "node_modules")], |
| 39 | +- collectCoverage: !process.env.CI, |
| 40 | ++ // collectCoverage: !process.env.CI, |
| 41 | + coverageDirectory: join(projectDir, "dist/coverage"), |
| 42 | + testEnvironment: "jsdom" |
| 43 | + }; |
0 commit comments