@rsbuild/plugin-svelte 0.1.9 → 0.2.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/dist/index.js CHANGED
@@ -73,7 +73,7 @@ function pluginSvelte(options = {}) {
73
73
  dev: !isProd
74
74
  },
75
75
  preprocess: sveltePreprocess(),
76
- emitCss: !rsbuildConfig.output.disableCssExtract,
76
+ emitCss: !rsbuildConfig.output.injectStyles,
77
77
  hotReload: !isProd && rsbuildConfig.dev.hmr
78
78
  },
79
79
  options.svelteLoaderOptions ?? {}
package/dist/index.mjs CHANGED
@@ -55,7 +55,7 @@ function pluginSvelte(options = {}) {
55
55
  dev: !isProd
56
56
  },
57
57
  preprocess: sveltePreprocess(),
58
- emitCss: !rsbuildConfig.output.disableCssExtract,
58
+ emitCss: !rsbuildConfig.output.injectStyles,
59
59
  hotReload: !isProd && rsbuildConfig.dev.hmr
60
60
  },
61
61
  options.svelteLoaderOptions ?? {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-svelte",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "description": "Svelte plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,13 +24,13 @@
24
24
  "dependencies": {
25
25
  "svelte-loader": "3.1.9",
26
26
  "svelte-preprocess": "^5.0.4",
27
- "@rsbuild/shared": "0.1.9"
27
+ "@rsbuild/shared": "0.2.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@types/node": "^16",
30
+ "@types/node": "16.x",
31
31
  "typescript": "^5.3.0",
32
- "@rsbuild/test-helper": "0.1.9",
33
- "@rsbuild/core": "0.1.9"
32
+ "@rsbuild/test-helper": "0.2.1",
33
+ "@rsbuild/core": "0.2.1"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public",