Skip to content

Commit

Permalink
build: fix library build
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Aug 19, 2019
1 parent b9103d9 commit d148318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector2/length.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Vector2 } from '@/types';
import { Vector2 } from '../types';

/** Length between points */
export function length(...points: Vector2[]): number {
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = (env, argv) => {
const config = require('./webpack.common.config');
config.entry('index').add('./src/index.ts');
config.output.library('svgVariableWidthLine').libraryTarget('umd');
return config.toConfig();
};

0 comments on commit d148318

Please sign in to comment.