@henderea/static-site-builder 1.10.36 → 1.10.38

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.
@@ -151,7 +151,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
151
151
  // It is guaranteed to exist because we tweak it in `env.js`
152
152
  process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
153
153
  ),
154
- extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
154
+ extensions: ['.js', '.cjs', '.mjs', '.ts', '.json', '.jsx', '.tsx'],
155
155
  plugins: resolvePlugins,
156
156
  roots: [paths.appPath, paths.publicDir],
157
157
  },
@@ -159,7 +159,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
159
159
  strictExportPresence: true,
160
160
  rules: [
161
161
  {
162
- test: /\.[tj]s$/,
162
+ test: /\.(t|[cm]?j)s$/,
163
163
  parser: { requireEnsure: false }
164
164
  },
165
165
  {
@@ -178,7 +178,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
178
178
  ]
179
179
  },
180
180
  {
181
- test: /\.js$/,
181
+ test: /\.[cm]?js$/,
182
182
  exclude: [/[/\\\\]node_modules[/\\\\]/],
183
183
  use: [
184
184
  require.resolve('thread-loader'),
@@ -196,7 +196,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
196
196
  ]
197
197
  },
198
198
  {
199
- test: /\.js$/,
199
+ test: /\.[cm]?js$/,
200
200
  use: [
201
201
  require.resolve('thread-loader'),
202
202
  {
@@ -246,7 +246,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
246
246
  // its runtime that would otherwise processed through "file" loader.
247
247
  // Also exclude `html` and `json` extensions so they get processed
248
248
  // by webpack's internal loaders.
249
- exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
249
+ exclude: [/\.[cm]?jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
250
250
  options: {
251
251
  name: '[name].[ext]'
252
252
  }
@@ -264,7 +264,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
264
264
  // It is guaranteed to exist because we tweak it in `env.js`
265
265
  process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
266
266
  ),
267
- extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
267
+ extensions: ['.js', '.cjs', '.mjs', '.ts', '.json', '.jsx', '.tsx'],
268
268
  plugins: resolvePlugins,
269
269
  roots: [paths.appPath, paths.publicDir],
270
270
  },
@@ -272,7 +272,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
272
272
  strictExportPresence: true,
273
273
  rules: [
274
274
  {
275
- test: /\.[tj]s$/,
275
+ test: /\.(t|[cm]?j)s$/,
276
276
  parser: { requireEnsure: false }
277
277
  },
278
278
  {
@@ -291,7 +291,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
291
291
  ]
292
292
  },
293
293
  {
294
- test: /\.js$/,
294
+ test: /\.[cm]?js$/,
295
295
  exclude: [/[/\\\\]node_modules[/\\\\]/],
296
296
  use: [
297
297
  require.resolve('thread-loader'),
@@ -306,7 +306,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
306
306
  ]
307
307
  },
308
308
  {
309
- test: /\.js$/,
309
+ test: /\.[cm]?js$/,
310
310
  use: [
311
311
  require.resolve('thread-loader'),
312
312
  {
@@ -377,7 +377,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
377
377
  // its runtime that would otherwise processed through "file" loader.
378
378
  // Also exclude `html` and `json` extensions so they get processed
379
379
  // by webpack's internal loaders.
380
- exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
380
+ exclude: [/\.[cm]?jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
381
381
  options: {
382
382
  name: '[name].[ext]'
383
383
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henderea/static-site-builder",
3
- "version": "1.10.36",
3
+ "version": "1.10.38",
4
4
  "description": "A static site builder",
5
5
  "main": "index.js",
6
6
  "repository": "henderea/static-site-builder.git",
@@ -59,7 +59,7 @@
59
59
  "tsconfig-paths-webpack-plugin": "^4.1.0",
60
60
  "webpack": "^5.91.0",
61
61
  "webpack-manifest-plugin": "^5.0.0",
62
- "workbox-webpack-plugin": "^7.0.0"
62
+ "workbox-webpack-plugin": "^7.1.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@typescript-eslint/eslint-plugin": "^7.7.1",