@blocklet/pages-kit-block-studio 0.6.2 → 0.6.4
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/lib/cjs/plugins/vite-plugin-block-studio.js +7 -4
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/plugins/vite-plugin-block-studio.js +7 -4
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/plugins/vite-plugin-block-studio.d.ts +1 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -89,6 +89,7 @@ export function initBlockStudioPlugins(options) {
|
|
|
89
89
|
const workingDir = options?.cwd || process.cwd();
|
|
90
90
|
const entryFilesPattern = options?.entryFilesPattern || getBlockEntryFilesPattern();
|
|
91
91
|
const transpileBuiltinModule = options?.transpileBuiltinModule ?? true;
|
|
92
|
+
const ignoreCodeSplitter = options?.ignoreCodeSplitter ?? false;
|
|
92
93
|
const watchFilesDir = options?.watchFilesDir || getWatchFilesDir() || workingDir;
|
|
93
94
|
// default fallback to __dirname if _theme.tsx not exists
|
|
94
95
|
let pagesDir = __dirname.replace('cjs', 'esm');
|
|
@@ -312,10 +313,12 @@ export function initBlockStudioPlugins(options) {
|
|
|
312
313
|
}),
|
|
313
314
|
// initHtmlPreviewTransformPlugin(),
|
|
314
315
|
cssInjectedByJsPlugin(),
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
ignoreCodeSplitter
|
|
317
|
+
? undefined
|
|
318
|
+
: vitePluginCodeSplitter({
|
|
319
|
+
formats,
|
|
320
|
+
transpileBuiltinModule,
|
|
321
|
+
}),
|
|
319
322
|
{
|
|
320
323
|
name: 'vite-plugin-build-exit',
|
|
321
324
|
apply: 'build',
|