Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
xwjune committed Apr 3, 2019
1 parent 33594ba commit e58fc1d
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 32 deletions.
44 changes: 31 additions & 13 deletions .babelrc
Expand Up @@ -9,11 +9,30 @@
"corejs": 2
}
],
// Stage 3
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings",

// Stage 1
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-logical-assignment-operators",
[
"@babel/plugin-proposal-optional-chaining",
{
"loose": false
}
],
[
"@babel/plugin-proposal-pipeline-operator",
{
"proposal": "minimal"
}
],
[
"@babel/plugin-proposal-nullish-coalescing-operator",
{
"loose": false
}
],
"@babel/plugin-proposal-do-expressions",

// Stage 2
[
"@babel/plugin-proposal-decorators",
Expand All @@ -25,17 +44,16 @@
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",
// Stage 1
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-logical-assignment-operators",
"@babel/plugin-proposal-optional-chaining",

// Stage 3
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
[
"@babel/plugin-proposal-pipeline-operator",
"@babel/plugin-proposal-class-properties",
{
"proposal": "minimal"
"loose": false
}
],
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-do-expressions"
"@babel/plugin-proposal-json-strings"
]
}
1 change: 0 additions & 1 deletion dist.js

This file was deleted.

17 changes: 3 additions & 14 deletions dist/pinyin-util.js

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

4 changes: 2 additions & 2 deletions dist/pinyin-util.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "pinyin-util",
"version": "1.1.0",
"version": "1.1.1",
"description": "convert chinese to pinyin",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.base.js
Expand Up @@ -3,11 +3,12 @@ const webpack = require('webpack');
const package = require('./package.json');

module.exports = {
entry: './dist.js',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
library: 'pinyinUtil',
libraryTarget: 'umd',
libraryExport: 'default',
},
resolve: {
extensions: ['.js'],
Expand Down

0 comments on commit e58fc1d

Please sign in to comment.