@octohash/vite-config 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -4
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -10776,14 +10776,16 @@ function defineLibConfig(options) {
10776
10776
  build: {
10777
10777
  lib: {
10778
10778
  entry: "src/index.ts",
10779
- fileName: () => "index.mjs",
10779
+ fileName: (_, name) => `${name}.mjs`,
10780
10780
  formats: ["es"]
10781
10781
  },
10782
10782
  rollupOptions: {
10783
+ output: {
10784
+ preserveModules: true,
10785
+ preserveModulesRoot: "src"
10786
+ },
10783
10787
  external: (id) => {
10784
- return externalPackages.some(
10785
- (pkg) => id === pkg || id.startsWith(`${pkg}/`)
10786
- );
10788
+ return externalPackages.some((pkg) => id === pkg || id.startsWith(`${pkg}/`));
10787
10789
  }
10788
10790
  }
10789
10791
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@octohash/vite-config",
3
3
  "type": "module",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "description": "Opinionated Vite config preset.",
6
6
  "author": "jinghaihan",
7
7
  "license": "MIT",