MCPcopy
hub / github.com/wdjungst/react-project / transpileWebpackConfig

Function transpileWebpackConfig

modules/build.js:24–33  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

22}
23
24function transpileWebpackConfig(cb) {
25 const configPath = path.join(APP_PATH, getDXConfig().webpack)
26 const options = JSON.parse(fs.readFileSync(path.join(APP_PATH, '.babelrc')))
27 transformFile(configPath, options, (err, result) => {
28 if (err) throw err
29 mkdir('-p', PUBLIC_DIR)
30 fs.writeFileSync(WEBPACK_PATH, result.code)
31 cb()
32 })
33}
34
35function validateEnv() {
36 if (!process.env.NODE_ENV) {

Callers 1

buildFunction · 0.85

Calls 1

getDXConfigFunction · 0.90

Tested by

no test coverage detected