@dream-encode/wp-js-plugin-utils 0.2.4 → 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);
|
|
@@ -121,7 +120,6 @@ const createWebpackConfig = (options = {}) => {
|
|
|
121
120
|
api: 'modern',
|
|
122
121
|
webpackImporter: false,
|
|
123
122
|
sassOptions: {
|
|
124
|
-
importers: sassImporters,
|
|
125
123
|
loadPaths: [resolve(context, 'node_modules')]
|
|
126
124
|
}
|
|
127
125
|
}
|