Skip to content

Commit 50922ce

Browse files
chore: Change webpack config extension to .cjs (#3525)
1 parent aed2aee commit 50922ce

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

build-tools/tasks/a11y.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = task('test:a11y', async () => {
1313
},
1414
};
1515
const shard = parseArgs({ options, strict: false }).values.shard;
16-
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.js'], {
16+
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.cjs'], {
1717
env: {
1818
NODE_ENV: 'development',
1919
},

build-tools/tasks/build-pages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const webpack = require('webpack');
66
const { parallel } = require('gulp');
77
const path = require('path');
88
const { mkdirSync, existsSync } = require('fs');
9-
const createConfig = require('../../pages/webpack.config');
9+
const createConfig = require('../../pages/webpack.config.cjs');
1010
const { task } = require('../utils/gulp-utils');
1111
const workspace = require('../utils/workspace');
1212

build-tools/tasks/integ.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = task('test:integ', async () => {
1313
},
1414
};
1515
const shard = parseArgs({ options, strict: false }).values.shard;
16-
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.js'], {
16+
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.cjs'], {
1717
env: {
1818
NODE_ENV: 'development',
1919
},

build-tools/tasks/motion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const waitOn = require('wait-on');
66
const { task } = require('../utils/gulp-utils.js');
77

88
module.exports = task('test:motion', async () => {
9-
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.js'], {
9+
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.cjs'], {
1010
env: {
1111
NODE_ENV: 'development',
1212
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"lint:stylelint": "stylelint --ignore-path .gitignore --fix '{src,pages}/**/*.{css,scss}'",
2121
"start": "npm-run-all --parallel start:watch start:dev",
2222
"start:watch": "gulp watch",
23-
"start:dev": "cross-env NODE_ENV=development webpack serve --config pages/webpack.config.js",
24-
"start:integ": "cross-env NODE_ENV=development webpack serve --config pages/webpack.config.integ.js",
23+
"start:dev": "cross-env NODE_ENV=development webpack serve --config pages/webpack.config.cjs",
24+
"start:integ": "cross-env NODE_ENV=development webpack serve --config pages/webpack.config.integ.cjs",
2525
"prepare": "husky"
2626
},
2727
"dependencies": {
File renamed without changes.

pages/webpack.config.js renamed to pages/webpack.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33
const path = require('path');
4-
const baseConfig = require('./webpack.config.base');
4+
const baseConfig = require('./webpack.config.base.cjs');
55
const themes = require('../build-tools/utils/themes');
66
const workspace = require('../build-tools/utils/workspace');
77

pages/webpack.config.integ.js renamed to pages/webpack.config.integ.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
const baseConfig = require('./webpack.config');
43
const merge = require('lodash/merge');
4+
const baseConfig = require('./webpack.config.cjs');
55

66
module.exports = (...args) => {
77
const webConfig = baseConfig(...args);

0 commit comments

Comments
 (0)