Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

gautierrollin/wei-endless-build

Repository files navigation

wei-endless-build

Endless build with webpack-external-import (reproducible repo)

nvm use
npm install

npm run build
# OR
npm start # (need to kill the node process)
// src/main.jsx

import React from "react";
import { render } from "react-dom";
import { Auth } from "aws-amplify"; // comment this line to make the build work
import { corsImport } from "webpack-external-import";
import ComponentWithExternal from "./ComponentWithExternal.jsx";

corsImport(`http://localhost:8081/importManifestExt.js?${Date.now()}`).then(() => {
  render(
    <>
      <h1>wei-endless-build</h1>
      <ComponentWithExternal />
    </>,
    document.getElementById("react")
  );
});

Related links:

About

Endless build with webpack-external-import (reproducible repo)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published