Skip to content

Commit

Permalink
fix(browser): spm not support es6 now.
Browse files Browse the repository at this point in the history
  • Loading branch information
hotoo committed Aug 25, 2015
1 parent b8e0719 commit eeab6c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ dict-node:
infrequent:
@node ./tools/infrequent.js > ./tools/zi/infrequent.js

.PHONY: build-doc publish-doc server clean test coverage test-spm test-npm test-cli lint
.PHONY: build-doc publish-doc server clean test coverage test-spm test-npm test-cli lint benchmark
6 changes: 3 additions & 3 deletions src/pinyin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict";

let PINYIN_DICT = {};
const utils = require("./utils");
const PINYIN_STYLE = utils.PINYIN_STYLE;
var PINYIN_DICT = {};
var utils = require("./utils");
var PINYIN_STYLE = utils.PINYIN_STYLE;

// 声母表。
var INITIALS = "b,p,m,f,d,t,n,l,g,k,h,j,q,x,r,zh,ch,sh,z,c,s".split(",");
Expand Down
4 changes: 2 additions & 2 deletions web-pinyin.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function buildPinyinCache(dict_combo){
return uncomboed;
}

const PINYIN_DICT = buildPinyinCache(require("./data/dict-zi-web"));
const pinyin = require("./src/pinyin");
var PINYIN_DICT = buildPinyinCache(require("./data/dict-zi-web"));
var pinyin = require("./src/pinyin");
pinyin.setDict(PINYIN_DICT);

module.exports = pinyin;

0 comments on commit eeab6c6

Please sign in to comment.