@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.
@@ -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
- (0, vite_plugin_code_splitter_1.vitePluginCodeSplitter)({
353
- formats,
354
- transpileBuiltinModule,
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',