Skip to content

Commit 1cb878d

Browse files
authored
feat: SSR compatibility TG-10 (#421)
1 parent 60d32e2 commit 1cb878d

89 files changed

Lines changed: 105373 additions & 50899 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ packages/**/dist
1616
testapps/*/dist
1717
testapps/ngx/*/dist
1818
**/.DS_Store
19+
testapps/gatsby/.env*
20+
testapps/gatsby.cache
21+
testapps/gatsby/public

e2e/cypress/integration/core/base.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ context('Base test', () => {
55

66
it('is working for all bundles', () => {
77
const xpath = cy.xpath("//*[contains(text(), 'This is test text!')]");
8-
xpath.should('have.length', 6);
8+
xpath.should('have.length', 4);
99
});
1010
});

gradle/e2e.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ task waitForRunningContainer(type: Task, group: "e2e") {
1111
BufferedReader stdInput = new BufferedReader(new InputStreamReader(proc.getInputStream()))
1212
String s = null
1313
while ((s = stdInput.readLine()) != null) {
14+
println(s)
1415
if (s.contains("Tomcat started on port(s):")) {
1516
return
1617
}

packages/core/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
if (process.env.NODE_ENV === 'production') {
4+
module.exports = require('./dist/tolgee.cjs.min.js');
5+
} else {
6+
module.exports = require('./dist/tolgee.cjs.js');
7+
}

0 commit comments

Comments
 (0)