@minnai/create-aura-app 0.0.15 → 0.0.16
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/package.json
CHANGED
|
@@ -12,11 +12,13 @@ export const registerExampleAIRs = () => {
|
|
|
12
12
|
// The Standard AIRs export a wrapper object { manifest, resources, component }
|
|
13
13
|
// We need to flatten this to match AIRManifest { id, meta, component }
|
|
14
14
|
[TasksAIR, YouTubeAIR].forEach((air: any) => {
|
|
15
|
-
|
|
15
|
+
// Core AIRs are exported as { manifest, resources, component }
|
|
16
|
+
const airData = air.default || air;
|
|
17
|
+
if (LOCAL_AIRS.includes(airData.manifest.id)) {
|
|
16
18
|
atmosphere.register({
|
|
17
|
-
...
|
|
18
|
-
component:
|
|
19
|
-
resources:
|
|
19
|
+
...airData.manifest,
|
|
20
|
+
component: airData.component,
|
|
21
|
+
resources: airData.resources
|
|
20
22
|
});
|
|
21
23
|
}
|
|
22
24
|
});
|
|
@@ -271,6 +271,13 @@ export default {
|
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
],
|
|
274
|
+
resolve: {
|
|
275
|
+
alias: {
|
|
276
|
+
'react': path.resolve(__dirname, './node_modules/react'),
|
|
277
|
+
'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
|
|
278
|
+
},
|
|
279
|
+
dedupe: ['react', 'react-dom']
|
|
280
|
+
},
|
|
274
281
|
server: {
|
|
275
282
|
port: 5175
|
|
276
283
|
}
|