Skip to content

Commit

Permalink
Do not explicitly import core library into plugins
Browse files Browse the repository at this point in the history
Require that the developer import jcanvas before importing plugins (in
the consuming application).
  • Loading branch information
caleb531 committed Jun 3, 2024
1 parent 2158b8d commit 622e7a6
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default inputPaths.map((inputPath) => {
const inputFilenameWithoutExtension = path.basename(inputPath, ".ts");
return {
input: [inputPath],
external: ["jquery", "jcanvas"],
external: ["jquery"],
output: [
{
file: `dist/umd/${inputFilenameWithoutExtension}.min.js`,
Expand Down
1 change: 0 additions & 1 deletion src/jcanvas-crescents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright 2013-2024 Caleb Evans
* Released under the MIT license
*/
import "jcanvas";
import $ from "jquery";

// Cache some functions and constants
Expand Down
1 change: 0 additions & 1 deletion src/jcanvas-donuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright 2013-2024 Caleb Evans
* Released under the MIT license
*/
import "jcanvas";
import $ from "jquery";

const PI = Math.PI;
Expand Down
1 change: 0 additions & 1 deletion src/jcanvas-handles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright 2015-2024 Caleb Evans
* Released under the MIT license
*/
import "jcanvas";
import $ from "jquery";

interface JCanvasLayerWithHandles extends JCanvasLayer {
Expand Down
1 change: 0 additions & 1 deletion src/jcanvas-hearts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright 2013-2024 Caleb Evans
* Released under the MIT license
*/
import "jcanvas";
import $ from "jquery";

const PI = Math.PI;
Expand Down

0 comments on commit 622e7a6

Please sign in to comment.