-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: keep babel build for CJS packages
- Loading branch information
Showing
9 changed files
with
76 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
packages/mc-scripts/config/create-webpack-config-for-development.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
// For backwards compatibilty | ||
const { | ||
createWebpackConfigForDevelopment, | ||
} = require('../dist/commercetools-frontend-mc-scripts.cjs'); | ||
module.exports = createWebpackConfigForDevelopment; | ||
module.exports = require('../build/config/create-webpack-config-for-development'); |
5 changes: 1 addition & 4 deletions
5
packages/mc-scripts/config/create-webpack-config-for-production.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
// For backwards compatibilty | ||
const { | ||
createWebpackConfigForProduction, | ||
} = require('../dist/commercetools-frontend-mc-scripts.cjs'); | ||
module.exports = createWebpackConfigForProduction; | ||
module.exports = require('../build/config/create-webpack-config-for-production'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
// For backwards compatibilty | ||
const { | ||
vendorsToCompile, | ||
} = require('../dist/commercetools-frontend-mc-scripts.cjs'); | ||
module.exports = vendorsToCompile; | ||
module.exports = require('../build/config/vendors-to-transpile'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
const createWebpackConfigForDevelopment = require('./config/create-webpack-config-for-development'); | ||
const createWebpackConfigForProduction = require('./config/create-webpack-config-for-production'); | ||
const createDevServerConfig = require('./config/webpack-dev-server.config'); | ||
const vendorsToCompile = require('./config/vendors-to-transpile'); | ||
|
||
module.exports = { | ||
createWebpackConfigForDevelopment, | ||
createWebpackConfigForProduction, | ||
createDevServerConfig, | ||
vendorsToCompile, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
CLOUD_IDENTIFIER="gcp-eu" | ||
APP_URL="https://<your_app_hostname>" | ||
ECHO_SERVER_URL="http://localhost:3000/api/echo" | ||
HOST_GCP_STAGING="" | ||
TRACKING_GTM="GTM-XXXXXX" | ||
ENABLE_NEW_JSX_TRANSFORM="true" | ||
FAST_REFRESH="true" |