mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-29 19:20:39 +02:00
webpack literally breaks paper.js when it minifies
This commit is contained in:
@@ -39,7 +39,7 @@ var baseClass = {
|
||||
this.ctx.scale(dpr, dpr);
|
||||
|
||||
if (this.props.paperjs) {
|
||||
var Paper = this.Paper = require("../lib/vendor/paperjs/paper-core");
|
||||
var Paper = this.Paper = require("paper/dist/paper-core");
|
||||
Paper.setup(cvs);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user