@jackuait/blok 0.4.1-beta.4 → 0.4.1

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.
@@ -31,6 +31,15 @@ const FILE_EXTENSIONS = ['.js', '.jsx', '.ts', '.tsx', '.vue', '.svelte', '.html
31
31
 
32
32
  // Import transformations
33
33
  const IMPORT_TRANSFORMS = [
34
+ // EditorJS subpath imports (e.g., @editorjs/editorjs/types -> @jackuait/blok/types)
35
+ {
36
+ pattern: /from\s+['"]@editorjs\/editorjs\/([^'"]+)['"]/g,
37
+ replacement: "from '@jackuait/blok/$1'",
38
+ },
39
+ {
40
+ pattern: /require\s*\(\s*['"]@editorjs\/editorjs\/([^'"]+)['"]\s*\)/g,
41
+ replacement: "require('@jackuait/blok/$1')",
42
+ },
34
43
  // Main EditorJS import
35
44
  {
36
45
  pattern: /from\s+['"]@editorjs\/editorjs['"]/g,