sku 12.4.6 → 12.4.7

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # sku
2
2
 
3
+ ## 12.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixes a bug where `.cjs` and `.mjs` files were not being transpiled for browser targets ([#906](https://github.com/seek-oss/sku/pull/906))
8
+
3
9
  ## 12.4.6
4
10
 
5
11
  ### Patch Changes
@@ -1,11 +1,18 @@
1
1
  const loaders = require('./loaders');
2
2
  const { resolvePackage } = require('./resolvePackage');
3
3
 
4
+ // TODO: Figure out a better way to share this config. This is currently copy-pasted from
5
+ // `eslint-config-seek`
6
+ const extensions = {
7
+ js: ['js', 'cjs', 'mjs', 'jsx'],
8
+ ts: ['ts', 'cts', 'mts', 'tsx'],
9
+ };
10
+
4
11
  module.exports = {
5
12
  ...loaders,
6
13
  resolvePackage,
7
- TYPESCRIPT: /\.(ts|tsx)$/,
8
- JAVASCRIPT: /\.js$/,
14
+ TYPESCRIPT: new RegExp(`\.(${extensions.ts.join('|')})$`),
15
+ JAVASCRIPT: new RegExp(`\.(${extensions.js.join('|')})$`),
9
16
  LESS: /\.less$/,
10
17
  IMAGE: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
11
18
  SVG: /\.svg$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "12.4.6",
3
+ "version": "12.4.7",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
5
5
  "main": "index.js",
6
6
  "bin": {