@wix/astro 2.0.0 → 2.1.0

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.
@@ -1,13 +1,16 @@
1
- CLI Building entry: src/index.ts
1
+ CLI Building entry: src/builders.ts, src/index.ts
2
2
  CLI Using tsconfig: tsconfig.json
3
3
  CLI tsup v8.5.0
4
4
  CLI Using tsup config: /home/runner/work/headless-integrations/headless-integrations/packages/astro/tsup.config.mjs
5
5
  CLI Target: node20.9
6
6
  CLI Cleaning output folder
7
7
  ESM Build start
8
- ESM build/index.js 2.28 KB
9
- ESM build/index.js.map 3.91 KB
10
- ESM ⚡️ Build success in 19ms
8
+ ESM build/builders.js 791.00 B
9
+ ESM build/index.js 995.00 B
10
+ ESM build/builders.js.map 601.00 B
11
+ ESM build/index.js.map 1.54 KB
12
+ ESM ⚡️ Build success in 22ms
11
13
  DTS Build start
12
- DTS ⚡️ Build success in 2463ms
13
- DTS build/index.d.ts 251.00 B
14
+ DTS ⚡️ Build success in 4435ms
15
+ DTS build/builders.d.ts 319.00 B
16
+ DTS build/index.d.ts 251.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,56 @@
1
1
  # @wix/astro
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#25](https://github.com/wix-incubator/headless-integrations/pull/25) [`4e0b6c2`](https://github.com/wix-incubator/headless-integrations/commit/4e0b6c23054bd2fb7230f437d59d45bb54b3bed0) Thanks [@ronami](https://github.com/ronami)! - Adjusts the way to define the Wix app manifest. Instead of the current convention of using a filesystem convention (e.g. `src/extensions/*/extension.json`), a single file is expected: `src/extensions.ts` (and it's optional).
8
+
9
+ The file let's developers define their app manifest programmatically:
10
+
11
+ ```ts
12
+ import { app, backofficePage, extension } from '@wix/astro/builders';
13
+
14
+ export default app()
15
+ .use(
16
+ backofficePage({
17
+ component: './extensions/my-page/page.tsx',
18
+ id: '57512654-b94e-460b-91e4-88624b5afea3',
19
+ routePath: 'hello',
20
+ title: 'Trusted Index Page',
21
+ })
22
+ )
23
+ .use(
24
+ extension({
25
+ compData: {
26
+ webhook: {
27
+ callbackUrl: 'https://www.wix.com',
28
+ },
29
+ },
30
+ compId: 'f988e3bc-acaa-4aca-9cf8-2cd81cc39ee8',
31
+ compType: 'WEBHOOK',
32
+ })
33
+ );
34
+ ```
35
+
36
+ Some of the data is used to build each component correctly (and has a specific helper method to create it), along with a generic `extension()` method for purely-configuration extensions (or ones the developer built separately).
37
+
38
+ Note that this is a breaking change.
39
+
40
+ ### Patch Changes
41
+
42
+ - [#113](https://github.com/wix-incubator/headless-integrations/pull/113) [`920410e`](https://github.com/wix-incubator/headless-integrations/commit/920410eec124488a35601b8e7e99895c385e3e94) Thanks [@ronami](https://github.com/ronami)! - Stop bundling SDK related packages to avoid multiple copies of these dependencies.
43
+
44
+ - [#92](https://github.com/wix-incubator/headless-integrations/pull/92) [`2652759`](https://github.com/wix-incubator/headless-integrations/commit/2652759d29f0911d02b0f5b8be9a7d97a0208c65) Thanks [@ronami](https://github.com/ronami)! - Patch version bump to try and fix the release workflow
45
+
46
+ - [#26](https://github.com/wix-incubator/headless-integrations/pull/26) [`948a404`](https://github.com/wix-incubator/headless-integrations/commit/948a4041161ae35876e507d70efb03ae40f9a6cd) Thanks [@kfirstri](https://github.com/kfirstri)! - Added wix paylink support
47
+
48
+ - Updated dependencies [[`920410e`](https://github.com/wix-incubator/headless-integrations/commit/920410eec124488a35601b8e7e99895c385e3e94), [`2652759`](https://github.com/wix-incubator/headless-integrations/commit/2652759d29f0911d02b0f5b8be9a7d97a0208c65), [`4e0b6c2`](https://github.com/wix-incubator/headless-integrations/commit/4e0b6c23054bd2fb7230f437d59d45bb54b3bed0), [`83e191d`](https://github.com/wix-incubator/headless-integrations/commit/83e191d1d5e09dcf08ad82c2f8d973d2461add53)]:
49
+ - @wix/astro-payment-links@2.0.1
50
+ - @wix/astro-html-embeds@2.0.1
51
+ - @wix/astro-extensions@2.1.0
52
+ - @wix/astro-auth@2.0.1
53
+
3
54
  ## 2.0.0
4
55
 
5
56
  ### Major Changes
@@ -0,0 +1,2 @@
1
+ export { app, genericExtension } from '@wix/astro-core';
2
+ export { backofficeExtensionMenuPlugin, backofficeExtensionWidget, backofficeModal, backofficePage, ecomAdditionalFees, ecomDiscountsTrigger, ecomGiftCardsProvider, ecomPaymentSettings, ecomShippingRates, ecomValidations, webhook } from '@wix/astro-extensions';
@@ -0,0 +1,34 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+
4
+ // src/builders.ts
5
+ import { app, genericExtension } from "@wix/astro-core";
6
+ import {
7
+ backofficeExtensionMenuPlugin,
8
+ backofficeExtensionWidget,
9
+ backofficeModal,
10
+ backofficePage,
11
+ ecomAdditionalFees,
12
+ ecomDiscountsTrigger,
13
+ ecomGiftCardsProvider,
14
+ ecomPaymentSettings,
15
+ ecomShippingRates,
16
+ ecomValidations,
17
+ webhook
18
+ } from "@wix/astro-extensions";
19
+ export {
20
+ app,
21
+ backofficeExtensionMenuPlugin,
22
+ backofficeExtensionWidget,
23
+ backofficeModal,
24
+ backofficePage,
25
+ ecomAdditionalFees,
26
+ ecomDiscountsTrigger,
27
+ ecomGiftCardsProvider,
28
+ ecomPaymentSettings,
29
+ ecomShippingRates,
30
+ ecomValidations,
31
+ genericExtension,
32
+ webhook
33
+ };
34
+ //# sourceMappingURL=builders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/builders.ts"],"sourcesContent":["export { app, genericExtension } from '@wix/astro-core';\nexport {\n backofficeExtensionMenuPlugin,\n backofficeExtensionWidget,\n backofficeModal,\n backofficePage,\n ecomAdditionalFees,\n ecomDiscountsTrigger,\n ecomGiftCardsProvider,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n webhook,\n} from '@wix/astro-extensions';\n"],"mappings":";;;;AAAA,SAAS,KAAK,wBAAwB;AACtC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
package/build/index.js CHANGED
@@ -2,79 +2,29 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
 
4
4
  // src/index.ts
5
- import manifest from "@wix/astro-app-manifest";
6
5
  import auth from "@wix/astro-auth";
6
+ import core from "@wix/astro-core";
7
7
  import extensions from "@wix/astro-extensions";
8
8
  import htmlEmbeds from "@wix/astro-html-embeds";
9
- import { envField, passthroughImageService } from "astro/config";
10
-
11
- // src/plugins/patchGlobal.ts
12
- var define = { global: "window" };
13
- function patchGlobal() {
14
- return [
15
- {
16
- apply: "serve",
17
- config: () => ({ optimizeDeps: { esbuildOptions: { define } } }),
18
- name: "fix-draft-js"
19
- },
20
- {
21
- apply: "build",
22
- config: () => ({ esbuild: { define } }),
23
- name: "fix-draft-js"
24
- }
25
- ];
26
- }
27
-
28
- // src/index.ts
9
+ import paymentLinks from "@wix/astro-payment-links";
29
10
  var createIntegration = ({
30
11
  enableAuthRoutes = true,
31
12
  enableHtmlEmbeds = true
32
13
  } = {}) => {
33
14
  return {
34
15
  hooks: {
35
- "astro:config:setup"({ updateConfig }) {
16
+ async "astro:config:setup"({ updateConfig }) {
36
17
  updateConfig({
37
- env: {
38
- schema: {
39
- WIX_CLIENT_ID: envField.string({
40
- access: "public",
41
- context: "client"
42
- }),
43
- WIX_CLIENT_INSTANCE_ID: envField.string({
44
- access: "secret",
45
- context: "server"
46
- }),
47
- WIX_CLIENT_PUBLIC_KEY: envField.string({
48
- access: "secret",
49
- context: "server"
50
- }),
51
- WIX_CLIENT_SECRET: envField.string({
52
- access: "secret",
53
- context: "server"
54
- })
55
- }
56
- },
57
- image: {
58
- domains: ["static.wixstatic.com"],
59
- service: passthroughImageService()
60
- },
61
18
  integrations: [
62
- auth({ enableAuthRoutes }),
63
- extensions(),
64
- manifest(),
65
- ...enableHtmlEmbeds ? [htmlEmbeds()] : []
66
- ],
67
- vite: {
68
- optimizeDeps: {
69
- include: [
70
- "@wix/dashboard/internal",
71
- "@wix/sdk-context",
72
- "@wix/sdk",
73
- "@wix/sdk/auth/site-session"
19
+ core({
20
+ integrations: [
21
+ auth({ enableAuthRoutes }),
22
+ extensions(),
23
+ ...enableHtmlEmbeds ? [htmlEmbeds()] : [],
24
+ paymentLinks()
74
25
  ]
75
- },
76
- plugins: [patchGlobal()]
77
- }
26
+ })
27
+ ]
78
28
  });
79
29
  }
80
30
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/plugins/patchGlobal.ts"],"sourcesContent":["import type { AstroIntegration } from 'astro';\nimport manifest from '@wix/astro-app-manifest';\nimport auth from '@wix/astro-auth';\nimport extensions from '@wix/astro-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport { envField, passthroughImageService } from 'astro/config';\nimport { patchGlobal } from './plugins/patchGlobal.js';\n\nconst createIntegration = ({\n enableAuthRoutes = true,\n enableHtmlEmbeds = true,\n}: {\n enableAuthRoutes?: boolean;\n enableHtmlEmbeds?: boolean;\n} = {}): AstroIntegration => {\n return {\n hooks: {\n 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n env: {\n schema: {\n WIX_CLIENT_ID: envField.string({\n access: 'public',\n context: 'client',\n }),\n WIX_CLIENT_INSTANCE_ID: envField.string({\n access: 'secret',\n context: 'server',\n }),\n WIX_CLIENT_PUBLIC_KEY: envField.string({\n access: 'secret',\n context: 'server',\n }),\n WIX_CLIENT_SECRET: envField.string({\n access: 'secret',\n context: 'server',\n }),\n },\n },\n image: {\n domains: ['static.wixstatic.com'],\n service: passthroughImageService(),\n },\n integrations: [\n auth({ enableAuthRoutes }),\n extensions(),\n manifest(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n ],\n vite: {\n optimizeDeps: {\n include: [\n '@wix/dashboard/internal',\n '@wix/sdk-context',\n '@wix/sdk',\n '@wix/sdk/auth/site-session',\n ],\n },\n plugins: [patchGlobal()],\n },\n });\n },\n },\n name: '@wix/astro',\n };\n};\n\nexport default createIntegration;\n","import type { PluginOption } from 'vite';\n\n// - https://github.com/facebookarchive/draft-js/issues/2127\n// - https://github.com/facebook/fbjs/issues/290\nconst define = { global: 'window' } as const;\n\nexport function patchGlobal(): PluginOption {\n return [\n {\n apply: 'serve',\n config: () => ({ optimizeDeps: { esbuildOptions: { define } } }),\n name: 'fix-draft-js',\n },\n {\n apply: 'build',\n config: () => ({ esbuild: { define } }),\n name: 'fix-draft-js',\n },\n ];\n}\n"],"mappings":";;;;AACA,OAAO,cAAc;AACrB,OAAO,UAAU;AACjB,OAAO,gBAAgB;AACvB,OAAO,gBAAgB;AACvB,SAAS,UAAU,+BAA+B;;;ACDlD,IAAM,SAAS,EAAE,QAAQ,SAAS;AAE3B,SAAS,cAA4B;AAC1C,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,QAAQ,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE;AAAA,MAC9D,MAAM;AAAA,IACR;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,QAAQ,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE;AAAA,MACrC,MAAM;AAAA,IACR;AAAA,EACF;AACF;;;ADXA,IAAM,oBAAoB,CAAC;AAAA,EACzB,mBAAmB;AAAA,EACnB,mBAAmB;AACrB,IAGI,CAAC,MAAwB;AAC3B,SAAO;AAAA,IACL,OAAO;AAAA,MACL,qBAAqB,EAAE,aAAa,GAAG;AACrC,qBAAa;AAAA,UACX,KAAK;AAAA,YACH,QAAQ;AAAA,cACN,eAAe,SAAS,OAAO;AAAA,gBAC7B,QAAQ;AAAA,gBACR,SAAS;AAAA,cACX,CAAC;AAAA,cACD,wBAAwB,SAAS,OAAO;AAAA,gBACtC,QAAQ;AAAA,gBACR,SAAS;AAAA,cACX,CAAC;AAAA,cACD,uBAAuB,SAAS,OAAO;AAAA,gBACrC,QAAQ;AAAA,gBACR,SAAS;AAAA,cACX,CAAC;AAAA,cACD,mBAAmB,SAAS,OAAO;AAAA,gBACjC,QAAQ;AAAA,gBACR,SAAS;AAAA,cACX,CAAC;AAAA,YACH;AAAA,UACF;AAAA,UACA,OAAO;AAAA,YACL,SAAS,CAAC,sBAAsB;AAAA,YAChC,SAAS,wBAAwB;AAAA,UACnC;AAAA,UACA,cAAc;AAAA,YACZ,KAAK,EAAE,iBAAiB,CAAC;AAAA,YACzB,WAAW;AAAA,YACX,SAAS;AAAA,YACT,GAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC;AAAA,UAC3C;AAAA,UACA,MAAM;AAAA,YACJ,cAAc;AAAA,cACZ,SAAS;AAAA,gBACP;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,cACF;AAAA,YACF;AAAA,YACA,SAAS,CAAC,YAAY,CAAC;AAAA,UACzB;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA,MAAM;AAAA,EACR;AACF;AAEA,IAAO,gBAAQ;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { AstroIntegration } from 'astro';\nimport auth from '@wix/astro-auth';\nimport core from '@wix/astro-core';\nimport extensions from '@wix/astro-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\n\nconst createIntegration = ({\n enableAuthRoutes = true,\n enableHtmlEmbeds = true,\n}: {\n enableAuthRoutes?: boolean;\n enableHtmlEmbeds?: boolean;\n} = {}): AstroIntegration => {\n return {\n hooks: {\n async 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n integrations: [\n core({\n integrations: [\n auth({ enableAuthRoutes }),\n extensions(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n paymentLinks(),\n ],\n }),\n ],\n });\n },\n },\n name: '@wix/astro',\n };\n};\n\nexport default createIntegration;\n"],"mappings":";;;;AACA,OAAO,UAAU;AACjB,OAAO,UAAU;AACjB,OAAO,gBAAgB;AACvB,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AAEzB,IAAM,oBAAoB,CAAC;AAAA,EACzB,mBAAmB;AAAA,EACnB,mBAAmB;AACrB,IAGI,CAAC,MAAwB;AAC3B,SAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM,qBAAqB,EAAE,aAAa,GAAG;AAC3C,qBAAa;AAAA,UACX,cAAc;AAAA,YACZ,KAAK;AAAA,cACH,cAAc;AAAA,gBACZ,KAAK,EAAE,iBAAiB,CAAC;AAAA,gBACzB,WAAW;AAAA,gBACX,GAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC;AAAA,gBACzC,aAAa;AAAA,cACf;AAAA,YACF,CAAC;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA,MAAM;AAAA,EACR;AACF;AAEA,IAAO,gBAAQ;","names":[]}
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@wix/astro",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "dependencies": {
5
- "@wix/astro-app-manifest": "workspace:*",
6
- "@wix/astro-auth": "workspace:*",
7
- "@wix/astro-extensions": "workspace:*",
8
- "@wix/astro-html-embeds": "workspace:*"
5
+ "@wix/astro-auth": "^2.0.1",
6
+ "@wix/astro-core": "^2.0.0",
7
+ "@wix/astro-extensions": "^2.1.0",
8
+ "@wix/astro-html-embeds": "^2.0.1",
9
+ "@wix/astro-payment-links": "^2.0.1"
9
10
  },
10
11
  "devDependencies": {
11
- "@wix/sdk": "^1.15.23",
12
12
  "astro": "^5.10.1",
13
13
  "is-ci": "^4.1.0",
14
14
  "outdent": "^0.8.0",
15
- "tsup": "^8.5.0",
16
- "vite": "^6.0.0"
15
+ "tsup": "^8.5.0"
17
16
  },
18
17
  "exports": {
19
- ".": "./build/index.js"
18
+ ".": "./build/index.js",
19
+ "./builders": "./build/builders.js",
20
+ "./package.json": "./package.json"
20
21
  },
21
22
  "peerDependencies": {
22
- "@wix/sdk": "^1.15.23",
23
23
  "astro": "^5.0.0"
24
24
  },
25
25
  "publishConfig": {
@@ -29,7 +29,6 @@
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsup",
32
- "test": ":",
33
32
  "typecheck": "run -T tsc --noEmit"
34
33
  },
35
34
  "sideEffects": false,
@@ -0,0 +1,14 @@
1
+ export { app, genericExtension } from '@wix/astro-core';
2
+ export {
3
+ backofficeExtensionMenuPlugin,
4
+ backofficeExtensionWidget,
5
+ backofficeModal,
6
+ backofficePage,
7
+ ecomAdditionalFees,
8
+ ecomDiscountsTrigger,
9
+ ecomGiftCardsProvider,
10
+ ecomPaymentSettings,
11
+ ecomShippingRates,
12
+ ecomValidations,
13
+ webhook,
14
+ } from '@wix/astro-extensions';
package/src/index.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import type { AstroIntegration } from 'astro';
2
- import manifest from '@wix/astro-app-manifest';
3
2
  import auth from '@wix/astro-auth';
3
+ import core from '@wix/astro-core';
4
4
  import extensions from '@wix/astro-extensions';
5
5
  import htmlEmbeds from '@wix/astro-html-embeds';
6
- import { envField, passthroughImageService } from 'astro/config';
7
- import { patchGlobal } from './plugins/patchGlobal.js';
6
+ import paymentLinks from '@wix/astro-payment-links';
8
7
 
9
8
  const createIntegration = ({
10
9
  enableAuthRoutes = true,
@@ -15,49 +14,18 @@ const createIntegration = ({
15
14
  } = {}): AstroIntegration => {
16
15
  return {
17
16
  hooks: {
18
- 'astro:config:setup'({ updateConfig }) {
17
+ async 'astro:config:setup'({ updateConfig }) {
19
18
  updateConfig({
20
- env: {
21
- schema: {
22
- WIX_CLIENT_ID: envField.string({
23
- access: 'public',
24
- context: 'client',
25
- }),
26
- WIX_CLIENT_INSTANCE_ID: envField.string({
27
- access: 'secret',
28
- context: 'server',
29
- }),
30
- WIX_CLIENT_PUBLIC_KEY: envField.string({
31
- access: 'secret',
32
- context: 'server',
33
- }),
34
- WIX_CLIENT_SECRET: envField.string({
35
- access: 'secret',
36
- context: 'server',
37
- }),
38
- },
39
- },
40
- image: {
41
- domains: ['static.wixstatic.com'],
42
- service: passthroughImageService(),
43
- },
44
19
  integrations: [
45
- auth({ enableAuthRoutes }),
46
- extensions(),
47
- manifest(),
48
- ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),
49
- ],
50
- vite: {
51
- optimizeDeps: {
52
- include: [
53
- '@wix/dashboard/internal',
54
- '@wix/sdk-context',
55
- '@wix/sdk',
56
- '@wix/sdk/auth/site-session',
20
+ core({
21
+ integrations: [
22
+ auth({ enableAuthRoutes }),
23
+ extensions(),
24
+ ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),
25
+ paymentLinks(),
57
26
  ],
58
- },
59
- plugins: [patchGlobal()],
60
- },
27
+ }),
28
+ ],
61
29
  });
62
30
  },
63
31
  },
package/tsconfig.json CHANGED
@@ -2,8 +2,6 @@
2
2
  "extends": "../../tsconfig.base.json",
3
3
  "include": ["src"],
4
4
  "compilerOptions": {
5
- "outDir": "build",
6
- "declaration": true,
7
- "lib": ["dom", "ES2021"]
5
+ "outDir": "build"
8
6
  }
9
7
  }
package/tsup.config.mjs CHANGED
@@ -12,7 +12,7 @@ export default defineConfig([
12
12
  dts: {
13
13
  resolve: [...astroExternals, ...viteExternals],
14
14
  },
15
- entry: ['src/index.ts'],
15
+ entry: ['src/index.ts', 'src/builders.ts'],
16
16
  external: [...astroExternals, ...viteExternals],
17
17
  format: ['esm'],
18
18
  outDir: 'build',
@@ -1,20 +0,0 @@
1
- import type { PluginOption } from 'vite';
2
-
3
- // - https://github.com/facebookarchive/draft-js/issues/2127
4
- // - https://github.com/facebook/fbjs/issues/290
5
- const define = { global: 'window' } as const;
6
-
7
- export function patchGlobal(): PluginOption {
8
- return [
9
- {
10
- apply: 'serve',
11
- config: () => ({ optimizeDeps: { esbuildOptions: { define } } }),
12
- name: 'fix-draft-js',
13
- },
14
- {
15
- apply: 'build',
16
- config: () => ({ esbuild: { define } }),
17
- name: 'fix-draft-js',
18
- },
19
- ];
20
- }