From 6395f05d96a98848b435e3f69226bf918005e87a Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 3 Oct 2021 08:11:32 -0700 Subject: [PATCH] Rename testings.js to context-loader.js --- .../playground/{testing.js => context-loader.js} | 0 packages/web2d/webpack.playground.js | 15 +++++---------- 2 files changed, 5 insertions(+), 10 deletions(-) rename packages/web2d/test/playground/{testing.js => context-loader.js} (100%) diff --git a/packages/web2d/test/playground/testing.js b/packages/web2d/test/playground/context-loader.js similarity index 100% rename from packages/web2d/test/playground/testing.js rename to packages/web2d/test/playground/context-loader.js diff --git a/packages/web2d/webpack.playground.js b/packages/web2d/webpack.playground.js index 679e9297..fce5c1a9 100644 --- a/packages/web2d/webpack.playground.js +++ b/packages/web2d/webpack.playground.js @@ -25,14 +25,13 @@ const multiHtmlPlugin = namesHTML.map((name) => { }); }); -/** @type {import('webpack').Configuration} */ module.exports = { entry: { - testing: './test/playground/testing.js', + testing: './test/playground/context-loader.js', }, output: { path: path.resolve(__dirname, 'dist', 'tests'), - filename: 'testing.js', + filename: 'context-loader.js', publicPath: '/', }, devServer: { @@ -46,17 +45,13 @@ module.exports = { rules: [ { use: 'babel-loader', - test: /.(js|jsx)$/, + test: /.js$/, exclude: /node_modules/, - }, - { - type: 'asset', - test: /\.(png|svg|jpg|jpeg|gif)$/i, - }, + } ], }, resolve: { - extensions: ['.js', '.jsx', '.json'], + extensions: ['.js','.json'], }, plugins: [ new CleanWebpackPlugin(),