@mainset/builder-rslib 0.3.0 → 0.3.1-rc.2

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.
@@ -50,7 +50,10 @@ const nodeSourcerCommonPresetRslib = defineConfig({
50
50
  ],
51
51
  source: {
52
52
  entry: {
53
- index: path.join(runtimePathById.src, process.env.MS_CLI__RSLIB_BUNDLESS_MODE ? '/**/*' : 'index.mts'),
53
+ index: process.env.MS_CLI__RSLIB_BUNDLESS_MODE
54
+ ? // NOTE: the {.replace} is required to make the path work on Windows OS
55
+ path.join(runtimePathById.src, '/**/*').replace(/\\/g, '/')
56
+ : path.join(runtimePathById.src, 'index.mts'),
54
57
  },
55
58
  },
56
59
  output: {
@@ -1,12 +1,11 @@
1
1
  import '@mainset/cli/process-env-type';
2
2
  import { merge } from '@mainset/toolkit-js';
3
3
  import { pluginReact } from '@rsbuild/plugin-react';
4
- import { pluginSass } from '@rsbuild/plugin-sass';
5
4
  import { webPackageCommonPresetRslib } from './rslib.web-package.config.mjs';
6
5
  import { initRslibConfigGenerator } from './utils.mjs';
7
6
  const reactCommonPresetRslib = merge(webPackageCommonPresetRslib, {
8
7
  lib: [],
9
- plugins: [pluginReact(), pluginSass()],
8
+ plugins: [pluginReact()],
10
9
  });
11
10
  const generateReactRslibConfig = initRslibConfigGenerator(reactCommonPresetRslib);
12
11
  export { generateReactRslibConfig };
@@ -1,5 +1,6 @@
1
1
  import '@mainset/cli/process-env-type';
2
2
  import { merge } from '@mainset/toolkit-js';
3
+ import { pluginSass } from '@rsbuild/plugin-sass';
3
4
  import { nodeSourcerCommonPresetRslib } from './rslib.node-sourcer.config.mjs';
4
5
  import { initRslibConfigGenerator } from './utils.mjs';
5
6
  // NOTE: there is no sense in minimizing {*.min.js} / {*.min.css} output files in node package
@@ -18,6 +19,7 @@ const webPackageCommonPresetRslib = merge(nodeSourcerCommonPresetRslib, {
18
19
  // https://rsbuild.dev/config/output/source-map#default-behavior
19
20
  // sourceMap: true,
20
21
  },
22
+ plugins: [pluginSass()],
21
23
  tools: {
22
24
  cssLoader: {
23
25
  modules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mainset/builder-rslib",
3
- "version": "0.3.0",
3
+ "version": "0.3.1-rc.2",
4
4
  "description": "Builder for node packages",
5
5
  "homepage": "https://github.com/mainset/dev-stack-fe/tree/main/packages/builder-rslib",
6
6
  "bugs": {
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@mainset/cli": "^0.5.0",
35
- "@mainset/toolkit-js": "^0.1.2",
36
- "@mainset/dev-stack-fe": "^0.2.1"
35
+ "@mainset/dev-stack-fe": "^0.2.1",
36
+ "@mainset/toolkit-js": "^0.2.0-rc.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@mainset/cli": ">=0.5.0 <1.0.0",