@blocklet/pages-kit-block-studio 0.6.3 → 0.6.5
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
|
@@ -126,6 +126,7 @@ function initBlockStudioPlugins(options) {
|
|
|
126
126
|
const workingDir = options?.cwd || process.cwd();
|
|
127
127
|
const entryFilesPattern = options?.entryFilesPattern || (0, helper_1.getBlockEntryFilesPattern)();
|
|
128
128
|
const transpileBuiltinModule = options?.transpileBuiltinModule ?? true;
|
|
129
|
+
const ignoreCodeSplitter = options?.ignoreCodeSplitter ?? false;
|
|
129
130
|
const watchFilesDir = options?.watchFilesDir || (0, helper_1.getWatchFilesDir)() || workingDir;
|
|
130
131
|
// default fallback to __dirname if _theme.tsx not exists
|
|
131
132
|
let pagesDir = __dirname.replace('cjs', 'esm');
|
|
@@ -349,10 +350,12 @@ function initBlockStudioPlugins(options) {
|
|
|
349
350
|
}),
|
|
350
351
|
// initHtmlPreviewTransformPlugin(),
|
|
351
352
|
(0, vite_plugin_css_injected_by_js_1.default)(),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
ignoreCodeSplitter
|
|
354
|
+
? undefined
|
|
355
|
+
: (0, vite_plugin_code_splitter_1.vitePluginCodeSplitter)({
|
|
356
|
+
formats,
|
|
357
|
+
transpileBuiltinModule,
|
|
358
|
+
}),
|
|
356
359
|
{
|
|
357
360
|
name: 'vite-plugin-build-exit',
|
|
358
361
|
apply: 'build',
|