@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.
- package/.turbo/turbo-build.log +9 -6
- package/CHANGELOG.md +51 -0
- package/build/builders.d.ts +2 -0
- package/build/builders.js +34 -0
- package/build/builders.js.map +1 -0
- package/build/index.js +11 -61
- package/build/index.js.map +1 -1
- package/package.json +10 -11
- package/src/builders.ts +14 -0
- package/src/index.ts +11 -43
- package/tsconfig.json +1 -3
- package/tsup.config.mjs +1 -1
- package/src/plugins/patchGlobal.ts +0 -20
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
1
|
+
[34mCLI[39m Building entry: src/builders.ts, src/index.ts
|
|
2
2
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
3
3
|
[34mCLI[39m tsup v8.5.0
|
|
4
4
|
[34mCLI[39m Using tsup config: /home/runner/work/headless-integrations/headless-integrations/packages/astro/tsup.config.mjs
|
|
5
5
|
[34mCLI[39m Target: node20.9
|
|
6
6
|
[34mCLI[39m Cleaning output folder
|
|
7
7
|
[34mESM[39m Build start
|
|
8
|
-
[32mESM[39m [1mbuild/
|
|
9
|
-
[32mESM[39m [1mbuild/index.js
|
|
10
|
-
[32mESM[39m
|
|
8
|
+
[32mESM[39m [1mbuild/builders.js [22m[32m791.00 B[39m
|
|
9
|
+
[32mESM[39m [1mbuild/index.js [22m[32m995.00 B[39m
|
|
10
|
+
[32mESM[39m [1mbuild/builders.js.map [22m[32m601.00 B[39m
|
|
11
|
+
[32mESM[39m [1mbuild/index.js.map [22m[32m1.54 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 22ms
|
|
11
13
|
[34mDTS[39m Build start
|
|
12
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
-
[32mDTS[39m [1mbuild/
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 4435ms
|
|
15
|
+
[32mDTS[39m [1mbuild/builders.d.ts [22m[32m319.00 B[39m
|
|
16
|
+
[32mDTS[39m [1mbuild/index.d.ts [22m[32m251.00 B[39m
|
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
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
77
|
-
}
|
|
26
|
+
})
|
|
27
|
+
]
|
|
78
28
|
});
|
|
79
29
|
}
|
|
80
30
|
},
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"
|
|
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.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@wix/astro-
|
|
6
|
-
"@wix/astro-
|
|
7
|
-
"@wix/astro-extensions": "
|
|
8
|
-
"@wix/astro-html-embeds": "
|
|
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,
|
package/src/builders.ts
ADDED
|
@@ -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
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
60
|
-
},
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
61
29
|
});
|
|
62
30
|
},
|
|
63
31
|
},
|
package/tsconfig.json
CHANGED
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
|
-
}
|