Skip to content

Commit

Permalink
Trying to fix CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianCassayre committed Oct 6, 2020
1 parent c49ef2c commit fe48948
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 10 deletions.
52 changes: 51 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "read-gedcom",
"description": "Gedcom file reader",
"version": "0.0.4",
"main": "dist/cjs/gedcom.js",
"browser": "dist/umd/gedcom.js",
"module": "dist/esm/gedcom.js",
"version": "0.0.5",
"main": "dist/cjs/index.js",
"browser": "dist/umd/index.js",
"module": "dist/esm/index.js",
"files": [
"dist"
],
Expand All @@ -15,8 +15,8 @@
"author": "Florian Cassayre",
"license": "MIT",
"scripts": {
"build": "rollup -c",
"test": "mocha test/ --require esm"
"build": "rimraf dist && cross-env NODE_ENV=production rollup -c",
"test": "mocha test/ -r esm"
},
"repository": {
"type": "git",
Expand All @@ -30,8 +30,10 @@
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.0.0",
"assert": "^2.0.0",
"cross-env": "^7.0.2",
"esm": "^3.2.25",
"mocha": "^8.1.3",
"rimraf": "^3.0.2",
"rollup": "^2.26.11",
"rollup-plugin-terser": "^7.0.2"
}
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import commonjs from '@rollup/plugin-commonjs';
import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser';
//import { terser } from 'rollup-plugin-terser';

import pkg from './package.json';

Expand Down Expand Up @@ -29,13 +29,13 @@ export default {
],
plugins: [
babel({ babelHelpers: 'bundled' }),
terser({
/*terser({
keep_classnames: true, // Preserve class & function names
keep_fnames: true,
compress: {
unsafe: true,
}
}),
}),*/
commonjs()
]
};

0 comments on commit fe48948

Please sign in to comment.