1
0
Fork 0

🔧 Updated rollup config

This commit is contained in:
Joost De Cock 2019-07-19 15:09:05 +02:00
parent 18443cdfbf
commit 2a20b65fa2
105 changed files with 1171 additions and 902 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@freesewing/core",
"version": "0.32.4",
"version": "2.0.0-beta.33",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -35,11 +35,13 @@
"report": "BABEL_ENV=production nyc report --reporter=html",
"coverage": "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
},
"peerDependencies": {},
"dependencies": {
"bezier-js": "^2.2.13",
"bin-pack": "1.0.2",
"hooks": "^0.3.2"
},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -28,10 +28,7 @@ export default {
resolve(),
json(),
commonjs(),
babel({
exclude: "node_modules/**",
plugins: ["@babel/plugin-proposal-object-rest-spread"]
}),
babel(),
minify({
comments: false,
sourceMap: true,

View file

@ -236,12 +236,9 @@ Svg.prototype.renderText = function(point) {
};
Svg.prototype.renderCircle = function(point) {
return `<circle
cx="${point.x}"
cy="${point.y}"
r="${point.attributes.get("data-circle")}"
${point.attributes.renderIfPrefixIs("data-circle-")}
></circle>`;
return `<circle cx="${point.x}" cy="${point.y}" r="${point.attributes.get(
"data-circle"
)}" ${point.attributes.renderIfPrefixIs("data-circle-")}></circle>`;
};
/** Returns SVG code for a snippet */