Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Fixes #498: Fix React and Vue #531

Merged
merged 1 commit into from Feb 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -10,18 +10,19 @@
*/

// Require webpack bundles generated by create-react-app build.
const runtime = require("./static/js/runtime-main.js");
const two = require("./static/js/2.chunk.js");
const main = require("./static/js/main.chunk.js");

// Load React and runtime engine modules.
runtime();
two();
var runtime = require("./static/js/runtime-main.js");
var two = require("./static/js/2.chunk.js");
var main = require("./static/js/main.chunk.js");

// Require our adapt runtime support module
var _ADAPT_RT_ = require("./adapt-rt");

// Invoke Angular main module passing Liferay's standard entry point arguments.
// Invoke main module passing Liferay's standard entry point arguments.
module.exports = function(_LIFERAY_PARAMS_) {
// Load React and runtime engine modules.
runtime();
two();

// Call main
main(_LIFERAY_PARAMS_, _ADAPT_RT_);
};
Expand Up @@ -13,13 +13,14 @@
var chunkVendors = require("./js/chunk-vendors.js");
var app = require("./js/app.js");

// Load one time resources
chunkVendors();

// Require our adapt runtime support module
var _ADAPT_RT_ = require("./adapt-rt");

// Invoke main module passing Liferay's standard entry point arguments
module.exports = function(_LIFERAY_PARAMS_) {
// Load one time resources
chunkVendors();

// Call main
app(_LIFERAY_PARAMS_, _ADAPT_RT_);
};