Skip to content

Commit 2957b6e

Browse files
Upgrade version
1 parent d8a4897 commit 2957b6e

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

config/rollup.base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
modules: false,
3232
dangerousForOf: true
3333
},
34-
objedtAssign: 'Object.assign'
34+
objectAssign: 'Object.assign'
3535
}),
3636
(process.env.NODE_ENV === 'production' && uglify())
3737
]

config/rollup.build.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
// Set up environment
2-
import 'shelljs/global'
3-
if (env.BUILD_TARGET !== 'DEMO') env.NODE_ENV = 'production'
4-
51
// Import base config
62
import base from './rollup.base'
73

84
base.output.file = base.proDest
9-
base.output.sourcemap = env.BUILD_ENV === 'DEMO' || env.BUILD_ENV === 'CI' ? base.output.sourcemap : false
5+
base.output.sourcemap = process.env.BUILD_ENV === 'DEMO' || process.env.BUILD_ENV === 'CI' ? base.output.sourcemap : false
106

117
export default base

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "eft-parser",
3-
"version": "0.5.11",
3+
"version": "0.5.12",
44
"description": "ef.js template parser",
55
"main": "dist/eft-parser.min.js",
66
"module": "src/eft-parser.js",
77
"scripts": {
88
"dev": "rollup -c ./config/rollup.dev.js -w",
9-
"build": "rollup -c ./config/rollup.build.js",
9+
"build": "NODE_ENV=production rollup -c ./config/rollup.build.js",
1010
"lint": "eslint --ext .js src"
1111
},
1212
"repository": {

0 commit comments

Comments
 (0)