File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 19
19
"require" : " ./dist/decap-cms-app.js"
20
20
},
21
21
"./init" : {
22
- "import" : " ./dist/esm/init/index.js"
22
+ "import" : " ./dist/esm/init/index.js" ,
23
+ "require" : " ./src/init/esm-only.cjs"
23
24
}
24
25
},
25
26
"scripts" : {
Original file line number Diff line number Diff line change
1
+ function error ( ) {
2
+ throw new Error (
3
+ 'The "decap-cms-app/init" subpath is only available in ESM environments.\n' +
4
+ 'Please make sure you are using it in an ESM context (e.g. with "type": "module" in your package.json).' ,
5
+ ) ;
6
+ }
7
+
8
+ exports . registerBackend = error ;
9
+ exports . registerCoreWidgets = error ;
10
+ exports . registerMapWidget = error ;
11
+ exports . registerCodeWidget = error ;
12
+ exports . registerImageComponent = error ;
13
+ exports . registerLocale = error ;
14
+ exports . registerAll = error ;
15
+ exports . init = error ;
You can’t perform that action at this time.
0 commit comments