1 | // import path for resolving file paths
|
2 | var path = require('path');
|
3 | module.exports = {
|
4 | // Specify the entry point for our app.
|
5 | entry: [
|
6 | path.join(__dirname, '..', 'lib', 'core.js'),
|
7 | ],
|
8 | // Specify the output file containing our bundled code
|
9 | output: {
|
10 | path: path.join(__dirname, '..', 'dist'),
|
11 | filename: 'aws-sdk-core-react-native.js',
|
12 | libraryTarget: 'umd',
|
13 | library: 'AWS'
|
14 | },
|
15 | resolve: {},
|
16 | module: {
|
17 | /**
|
18 | * Tell webpack how to load 'json' files.
|
19 | * By default, webpack only knows how to handle
|
20 | * JavaScript files.
|
21 | * When webpack comes across a 'require()' statement
|
22 | * where a json file is being imported, it will use
|
23 | * the json-loader.
|
24 | */
|
25 | loaders: [
|
26 | {
|
27 | test: /\.json$/,
|
28 | loaders: ['json']
|
29 | }
|
30 | ]
|
31 | }
|
32 | };
|