@rock-js/plugin-repack 0.9.2 → 0.10.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rock-js/plugin-repack",
3
- "version": "0.9.2",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "exports": {
@@ -18,16 +18,16 @@
18
18
  "publish:verdaccio": "npm publish --registry http://localhost:4873 --userconfig ../../.npmrc"
19
19
  },
20
20
  "dependencies": {
21
- "@rock-js/tools": "^0.9.2",
21
+ "@rock-js/tools": "^0.10.1",
22
22
  "tslib": "^2.3.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@rock-js/config": "^0.9.2"
25
+ "@rock-js/config": "^0.10.1"
26
26
  },
27
27
  "peerDependencies": {
28
- "@callstack/repack": "^5.0.3",
29
- "@rspack/core": "^1.2.8",
30
- "@swc/helpers": "^0.5.15"
28
+ "@callstack/repack": ">=5",
29
+ "@rspack/core": ">=1.2.8",
30
+ "@swc/helpers": ">=0.5.15"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "rock-plugin-repack-template",
3
3
  "devDependencies": {
4
- "@rock-js/plugin-repack": "^0.9.2",
5
- "@callstack/repack": "^5.0.3",
6
- "@rspack/core": "^1.2.8",
7
- "@swc/helpers": "^0.5.15"
4
+ "@rock-js/plugin-repack": "^0.10.1",
5
+ "@callstack/repack": "^5.2.0",
6
+ "@rspack/core": "^1.5.0",
7
+ "@swc/helpers": "^0.5.17"
8
8
  }
9
9
  }
@@ -12,7 +12,7 @@ const __dirname = path.dirname(__filename);
12
12
  * Learn about Re.Pack configuration: https://re-pack.dev/docs/guides/configuration
13
13
  */
14
14
 
15
- export default {
15
+ export default Repack.defineRspackConfig({
16
16
  context: __dirname,
17
17
  entry: './index.js',
18
18
  resolve: {
@@ -20,9 +20,17 @@ export default {
20
20
  },
21
21
  module: {
22
22
  rules: [
23
- ...Repack.getJsTransformRules(),
23
+ {
24
+ test: /\.[cm]?[jt]sx?$/,
25
+ type: 'javascript/auto',
26
+ use: {
27
+ loader: '@callstack/repack/babel-swc-loader',
28
+ parallel: true,
29
+ options: {},
30
+ },
31
+ },
24
32
  ...Repack.getAssetTransformRules(),
25
33
  ],
26
34
  },
27
35
  plugins: [new Repack.RepackPlugin()],
28
- };
36
+ });