Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed May 26, 2023
1 parent 2f79688 commit c89bb7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/core/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
polyfills/URL/index.js
polyfills/URL/index.js
2 changes: 1 addition & 1 deletion packages/core/polyfills/URL/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"name": "@aws-amplify/core/polyfills/URL",
"react-native": "./index.js",
"main": "./index.js"
}
}
13 changes: 1 addition & 12 deletions packages/core/polyfills/URL/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit c89bb7f

Please sign in to comment.