vite-plugin-storybook-nextjs 2.0.1--canary.40.7811c8e.0 → 2.0.2--canary.41.5d54947.0
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.cjs +3 -0
- package/dist/index.js +2 -0
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var path2 = require('path');
|
|
4
4
|
var module$1 = require('module');
|
|
5
|
+
var tsconfigPaths = require('vite-tsconfig-paths');
|
|
5
6
|
var defineEnvPlugin_js = require('next/dist/build/webpack/plugins/define-env-plugin.js');
|
|
6
7
|
var fs3 = require('fs');
|
|
7
8
|
var nextEnv = require('@next/env');
|
|
@@ -48,6 +49,7 @@ function _interopNamespace(e) {
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
var path2__default = /*#__PURE__*/_interopDefault(path2);
|
|
52
|
+
var tsconfigPaths__default = /*#__PURE__*/_interopDefault(tsconfigPaths);
|
|
51
53
|
var fs3__default = /*#__PURE__*/_interopDefault(fs3);
|
|
52
54
|
var nextEnv__namespace = /*#__PURE__*/_interopNamespace(nextEnv);
|
|
53
55
|
var Log__default = /*#__PURE__*/_interopDefault(Log);
|
|
@@ -2872,6 +2874,7 @@ function VitePlugin({ dir = process.cwd() } = {}) {
|
|
|
2872
2874
|
const resolvedDir = path2.resolve(dir);
|
|
2873
2875
|
const nextConfigResolver = Promise.withResolvers();
|
|
2874
2876
|
return [
|
|
2877
|
+
tsconfigPaths__default.default({ root: resolvedDir }),
|
|
2875
2878
|
{
|
|
2876
2879
|
name: "vite-plugin-storybook-nextjs",
|
|
2877
2880
|
enforce: "pre",
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import path2, { resolve, join, sep } from 'node:path';
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
+
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
3
4
|
import { getDefineEnv } from 'next/dist/build/webpack/plugins/define-env-plugin.js';
|
|
4
5
|
import fs3 from 'node:fs';
|
|
5
6
|
import * as nextEnv from '@next/env';
|
|
@@ -2839,6 +2840,7 @@ function VitePlugin({ dir = process.cwd() } = {}) {
|
|
|
2839
2840
|
const resolvedDir = resolve(dir);
|
|
2840
2841
|
const nextConfigResolver = Promise.withResolvers();
|
|
2841
2842
|
return [
|
|
2843
|
+
tsconfigPaths({ root: resolvedDir }),
|
|
2842
2844
|
{
|
|
2843
2845
|
name: "vite-plugin-storybook-nextjs",
|
|
2844
2846
|
enforce: "pre",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-storybook-nextjs",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2--canary.41.5d54947.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite-plugin",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"image-size": "^2.0.0",
|
|
89
89
|
"magic-string": "^0.30.11",
|
|
90
90
|
"module-alias": "^2.2.3",
|
|
91
|
-
"ts-dedent": "^2.2.0"
|
|
91
|
+
"ts-dedent": "^2.2.0",
|
|
92
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
92
93
|
},
|
|
93
94
|
"publishConfig": {
|
|
94
95
|
"access": "public"
|