@geastack/geatsc-plugin-gea 0.1.28 → 0.1.29
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/README.md +1 -1
- package/dist/analyze.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ compiler; an app never references it directly. The same can be done by hand:
|
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
26
|
geatsc compile-module-graph gea-module-graph.json --entry src/index.tsx \
|
|
27
|
-
--plugin @geastack/geatsc-plugin-gea
|
|
27
|
+
--out-dir build/generated --plugin @geastack/geatsc-plugin-gea
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
The module's default export is the plugin factory, as described in the
|
package/dist/analyze.js
CHANGED
|
@@ -276,6 +276,10 @@ function buildSourceAliases(entry) {
|
|
|
276
276
|
}
|
|
277
277
|
aliases.push({ find: /^three$/, replacement: () => path.join(geaThreeSrcDir, 'Three.ts') });
|
|
278
278
|
aliases.push({ find: /^three\/src\/(.+)\.js$/, replacement: (m) => path.join(geaThreeSrcDir, `${m[1]}.ts`) });
|
|
279
|
+
aliases.push({
|
|
280
|
+
find: /^three\/(?:addons|examples\/jsm)\/(.+)\.js$/,
|
|
281
|
+
replacement: (m) => path.join(geaThreeSrcDir, `addons/${m[1]}.ts`),
|
|
282
|
+
});
|
|
279
283
|
try {
|
|
280
284
|
appRequire.resolve('troika-three-text');
|
|
281
285
|
const troika = fs.realpathSync(appRequire.resolve('@geastack/native-webgl-angle/troika-three-text'));
|