@s-ui/bundler 9.2.0 → 9.3.0

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.
@@ -80,6 +80,9 @@ module.exports = ({config, packagesToLink, linkAll}) => {
80
80
  const {rules} = config.module
81
81
  const rulesWithLink = rules.map(rule => {
82
82
  const {use, test: regex} = rule
83
+
84
+ if (!use) return rule
85
+
83
86
  if (!regex.test('.css')) return rule
84
87
 
85
88
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -42,7 +42,7 @@ const webpackConfig = {
42
42
  babelRules,
43
43
  {
44
44
  // ignore css/scss/svg require/imports files in the server
45
- test: [/\.s?css$/, /\.svg$/],
45
+ test: /(\.svg|\.s?css)$/,
46
46
  type: 'asset/inline',
47
47
  generator: {
48
48
  dataUrl: () => ''