@@ -46,6 +46,13 @@ const buildPlatformJson = {
46
46
node : ">=0.10.0"
47
47
} ,
48
48
typings : "./typings/entries/index.d.ts" ,
49
+ exports : {
50
+ "." : {
51
+ "types" : "./typings/entries/index.d.ts" ,
52
+ "import" : "./fesm/survey-creator-react.js" ,
53
+ "require" : "./survey-creator-react.js"
54
+ }
55
+ } ,
49
56
peerDependencies : {
50
57
"ace-builds" : "^1.4.12" ,
51
58
"react" : "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0" ,
@@ -79,7 +86,6 @@ function getPercentageHandler(emitNonSourceFiles, buildPath) {
79
86
} ;
80
87
}
81
88
82
-
83
89
module . exports = function ( options ) {
84
90
const buildPath = __dirname + "/build/" ;
85
91
const isProductionBuild = options . buildType === "prod" ;
@@ -136,7 +142,7 @@ module.exports = function (options) {
136
142
} ,
137
143
{
138
144
test : / \. h t m l $ / ,
139
- exclude : [ / n o d e _ m o d u l e s / , require . resolve ( ' ./index.html' ) ] ,
145
+ exclude : [ / n o d e _ m o d u l e s / , require . resolve ( " ./index.html" ) ] ,
140
146
loader : "html-loader"
141
147
} ,
142
148
{
@@ -153,8 +159,8 @@ module.exports = function (options) {
153
159
filename : "[name]" + ( isProductionBuild ? ".min" : "" ) + ".js" ,
154
160
library : {
155
161
root : options . libraryName || "SurveyCreator" ,
156
- amd : ' [dashedname]' ,
157
- commonjs : ' [dashedname]' ,
162
+ amd : " [dashedname]" ,
163
+ commonjs : " [dashedname]" ,
158
164
} ,
159
165
libraryTarget : "umd" ,
160
166
globalObject : "this" ,
@@ -222,7 +228,7 @@ module.exports = function (options) {
222
228
] ) ;
223
229
config . devServer = {
224
230
static : {
225
- directory : path . join ( __dirname , '.' ) ,
231
+ directory : path . join ( __dirname , "." ) ,
226
232
} ,
227
233
//host: "0.0.0.0",
228
234
compress : false ,
0 commit comments