Skip to content

Commit

Permalink
fix: revert remove imports
Browse files Browse the repository at this point in the history
  • Loading branch information
oicramps committed Nov 17, 2021
1 parent 54ff47a commit f805917
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions app/angular/conceptual/conceptual.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import "backbone";
import $ from "jquery";

import * as joint from "jointjs/dist/joint";

import "../../joint/joint.ui.stencil";
import "../../joint/joint.ui.stencil.css";
import "../../joint/joint.ui.selectionView";
Expand All @@ -12,26 +10,23 @@ import "../../joint/joint.ui.halo";
import "../../joint/br-scroller";
import "../../joint/joint.dia.command";
import shapes from "../../joint/shapes";
joint.shapes.erd = shapes;

/*
* This line prevent a sideEffect issue in jointjs library that make webpack ignore joint css imports
* See more: https://github.com/webpack/webpack/issues/8814
*/
console.log(jointCss);

import jointCss from "jointjs/dist/joint.min.css";
import angular from "angular";
import template from "./conceptual.html";

import modelDuplicatorComponent from "../components/duplicateModelModal";

import Factory from "./factory";
import Validator from "./validator";
import Linker from "./linker";
import EntityExtensor from "./entityExtensor";
import KeyboardController, { types } from "../components/keyboardController";
import confirmationModal from "../components/confirmationModal";
import preventExitService from "../service/preventExitService";
import preventExitServiceModule from "../service/preventExitService";
joint.shapes.erd = shapes;

/*
* This line prevent a sideEffect issue in jointjs library that make webpack ignore joint css imports
* See more: https://github.com/webpack/webpack/issues/8814
*/
console.log(jointCss);

const controller = function (
ModelAPI,
Expand Down

0 comments on commit f805917

Please sign in to comment.