Run build via babel
This commit is contained in:
+7
-3
@@ -2,10 +2,11 @@
|
||||
"name": "file-saver",
|
||||
"version": "1.3.4",
|
||||
"description": "An HTML5 saveAs() FileSaver implementation",
|
||||
"main": "FileSaver.js",
|
||||
"main": "es/FileSaver.js",
|
||||
"module": "src/FileSaver.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 0",
|
||||
"build": "node_modules/.bin/uglifyjs FileSaver.js --mangle --comments /@source/ > FileSaver.min.js"
|
||||
"build": "NODE_ENV=production babel src --out-dir=es"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -23,6 +24,9 @@
|
||||
},
|
||||
"homepage": "https://github.com/eligrey/FileSaver.js#readme",
|
||||
"devDependencies": {
|
||||
"uglify-js": "^2.6.2"
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
|
||||
"babel-preset-env": "^1.6.1",
|
||||
"babel-preset-minify": "^0.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user