diff --git a/packages/core/.gitignore b/packages/core/.gitignore index 8070dcc628a..90f161ff564 100644 --- a/packages/core/.gitignore +++ b/packages/core/.gitignore @@ -1 +1 @@ -polyfills/URL/index.js \ No newline at end of file +polyfills/URL/index.js diff --git a/packages/core/polyfills/URL/package.json b/packages/core/polyfills/URL/package.json index d862c8a5cf8..3cfd7a78f84 100644 --- a/packages/core/polyfills/URL/package.json +++ b/packages/core/polyfills/URL/package.json @@ -2,4 +2,4 @@ "name": "@aws-amplify/core/polyfills/URL", "react-native": "./index.js", "main": "./index.js" -} \ No newline at end of file +} diff --git a/packages/core/polyfills/URL/webpack.config.js b/packages/core/polyfills/URL/webpack.config.js index c0c1f017ae6..3cf06f6773a 100644 --- a/packages/core/polyfills/URL/webpack.config.js +++ b/packages/core/polyfills/URL/webpack.config.js @@ -13,11 +13,6 @@ const rnUrlPolyfillDepsRegex = rnUrlPolyfillDeps.map( name => new RegExp(`^${name}\/?`) // match name with optional trailing slash ); -const corePath = path.resolve(path.join(__dirname, '..', '..', '..', '..')); -const outputDir = path.resolve( - path.join(corePath, 'lib', 'clients', 'polyfills', 'URL') -); - module.exports = { name: 'index', context: path.resolve(__dirname), @@ -26,8 +21,6 @@ module.exports = { }, output: { path: path.resolve(__dirname), - // filename: '[name].js', - // path: '/Users/zheallan/workspace/amplify-js/packages/core/polyfills', filename: '[name].js', library: { type: 'commonjs', @@ -40,14 +33,10 @@ module.exports = { loader: 'ts-loader', exclude: ['/node_modules/'], }, - { - test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: 'asset', - }, ], }, resolve: { - extensions: ['.tsx', '.ts', '.jsx', '.js', '...'], + extensions: ['.tsx', '.ts', '.jsx', '.js'], }, externals: rnUrlPolyfillDepsRegex, mode: 'production',