-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. use webpack to build 2. remove async/await #17
- Loading branch information
1 parent
285b9af
commit a6c3d6d
Showing
11 changed files
with
152 additions
and
34,529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"presets": ["es2015", "stage-2"], | ||
"plugins": ["transform-runtime"] | ||
} | ||
"presets": ["@babel/preset-env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
node_modules/ | ||
packages/ | ||
build/ | ||
src/ | ||
package-lock.json | ||
yarn.lock | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const path = require('path') | ||
|
||
module.exports = [ | ||
{ | ||
mode: 'production', | ||
entry: './lib/index.js', | ||
output: { | ||
path: path.resolve(__dirname, '../dist'), | ||
filename: 'app-info-parser.js', | ||
library: 'AppInfoParser' | ||
}, | ||
node: { | ||
fs: 'empty' | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const path = require('path') | ||
|
||
module.exports = [ | ||
{ | ||
mode: 'production', | ||
entry: './lib/index.js', | ||
output: { | ||
path: path.resolve(__dirname, '../src'), | ||
filename: 'index.js', | ||
library: 'AppInfoParser', | ||
libraryTarget: 'umd' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
use:{ | ||
loader: 'babel-loader', | ||
}, | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
externals: { | ||
bytebuffer: { | ||
commonjs: 'bytebuffer', | ||
commonjs2: 'bytebuffer', | ||
amd: 'bytebuffer' | ||
}, | ||
'cgbi-to-png': { | ||
commonjs: 'cgbi-to-png', | ||
commonjs2: 'cgbi-to-png', | ||
amd: 'cgbi-to-png' | ||
}, | ||
'isomorphic-unzip': { | ||
commonjs: 'isomorphic-unzip', | ||
commonjs2: 'isomorphic-unzip', | ||
amd: 'isomorphic-unzip' | ||
}, | ||
plist: { | ||
commonjs: 'plist', | ||
commonjs2: 'plist', | ||
amd: 'plist' | ||
} | ||
}, | ||
node: { | ||
fs: 'empty' | ||
} | ||
} | ||
] |
Oops, something went wrong.