@teambit/react 0.0.767 → 0.0.770
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/apps/web/react.application.ts +4 -4
- package/artifacts/env-template/public/22.js +4 -4
- package/artifacts/env-template/public/740.js +37 -0
- package/artifacts/env-template/public/875.js +58 -58
- package/artifacts/env-template/public/assets-manifest.json +8 -8
- package/artifacts/env-template/public/{compositions.65cdac3c67d734437566.js → compositions.ea9fbaf55ee8db8eb0d4.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/overview.f357668726e28897a548.js +5 -0
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{preview-root.65f7614139a4a7d6fbfa.js → preview-root.13d8cb2a4a025f53011e.js} +1 -1
- package/artifacts/preview/teambit_react_react-preview.js +2 -2
- package/{compositions-1655782086029.js → compositions-1656041300679.js} +0 -0
- package/dist/apps/web/react.application.js +4 -4
- package/dist/apps/web/react.application.js.map +1 -1
- package/dist/templates/react-env/files/main.runtime.js +11 -10
- package/dist/templates/react-env/files/main.runtime.js.map +1 -1
- package/{overview-1655782086029.js → overview-1656041300679.js} +0 -0
- package/package-tar/teambit-react-0.0.770.tgz +0 -0
- package/package.json +31 -31
- package/{preview-1655782086029.js → preview-1656041300679.js} +2 -2
- package/templates/react-env/files/main.runtime.ts +11 -10
- package/artifacts/env-template/public/607.js +0 -46
- package/artifacts/env-template/public/overview.0445a5a61099a9aa1ac7.js +0 -5
- package/package-tar/teambit-react-0.0.767.tgz +0 -0
|
@@ -73,7 +73,7 @@ export class ReactApp implements Application {
|
|
|
73
73
|
const bundler = await this.getBundler(context);
|
|
74
74
|
const bundleResult = await bundler.run();
|
|
75
75
|
|
|
76
|
-
return computeResults(bundleResult, { publicDir: `${this.getPublicDir()}/${this.dir}` });
|
|
76
|
+
return computeResults(bundleResult, { publicDir: `${this.getPublicDir(context.artifactsDir)}/${this.dir}` });
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
private getBundler(context: AppBuildContext) {
|
|
@@ -83,7 +83,7 @@ export class ReactApp implements Application {
|
|
|
83
83
|
private async getDefaultBundler(context: AppBuildContext) {
|
|
84
84
|
const { capsule } = context;
|
|
85
85
|
const reactEnv: ReactEnv = context.env;
|
|
86
|
-
const publicDir = this.getPublicDir();
|
|
86
|
+
const publicDir = this.getPublicDir(context.artifactsDir);
|
|
87
87
|
const outputPath = join(capsule.path, publicDir);
|
|
88
88
|
const { distDir } = reactEnv.getCompiler();
|
|
89
89
|
const entries = this.entry.map((entry) => require.resolve(`${capsule.path}/${distDir}/${basename(entry)}`));
|
|
@@ -177,8 +177,8 @@ export class ReactApp implements Application {
|
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
private getPublicDir() {
|
|
181
|
-
return join(this.applicationType, this.name);
|
|
180
|
+
private getPublicDir(artifactsDir: string) {
|
|
181
|
+
return join(artifactsDir, this.applicationType, this.name);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
private async getDevServerContext(context: AppContext): Promise<DevServerContext> {
|