MCPcopy Create free account
hub / github.com/GrapesJS/cli / babelConfig

Function babelConfig

src/utils.ts:115–124  ·  view source on GitHub ↗
(opts: { targets?: string } = {})

Source from the content-addressed store, hash-verified

113};
114
115export const babelConfig = (opts: { targets?: string } = {}) => ({
116 presets: [
117 [ resolve('@babel/preset-env'), {
118 targets: opts.targets,
119 // useBuiltIns: 'usage', // this makes the build much bigger
120 // corejs: 3,
121 } ]
122 ],
123 plugins: [ resolve('@babel/plugin-transform-runtime') ],
124})

Callers 2

webpack.config.tsFile · 0.90
buildLocaleFunction · 0.90

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected