@dream-encode/wp-js-plugin-utils 0.2.3 → 0.2.5

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.
@@ -12,7 +12,6 @@ const TerserPlugin = require('terser-webpack-plugin');
12
12
  const DependencyExtractionWebpackPlugin = require('@wordpress/dependency-extraction-webpack-plugin');
13
13
  const postcssPlugins = require('@wordpress/postcss-plugins-preset');
14
14
  const CSSAssetPlugin = require('./CSSAssetPlugin');
15
- const sassImporters = typeof sass.NodePackageImporter === 'function' ? [new sass.NodePackageImporter()] : [];
16
15
  const tryRequire = id => {
17
16
  try {
18
17
  return require(id);
@@ -119,8 +118,9 @@ const createWebpackConfig = (options = {}) => {
119
118
  implementation: sass,
120
119
  sourceMap: true,
121
120
  api: 'modern',
121
+ webpackImporter: false,
122
122
  sassOptions: {
123
- importers: sassImporters
123
+ loadPaths: [resolve(context, 'node_modules')]
124
124
  }
125
125
  }
126
126
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dream-encode/wp-js-plugin-utils",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Common JS functionality used by custom WP plugins.",
5
5
  "keywords": [
6
6
  "wordpress",