|
| 1 | +module.exports = { |
| 2 | + presets: [ |
| 3 | + [ |
| 4 | + '@babel/preset-env', { |
| 5 | + targets: { |
| 6 | + chrome: '41', |
| 7 | + firefox: '34', |
| 8 | + ie: '9', |
| 9 | + safari: '9', |
| 10 | + browsers: ['last 3 versions'] |
| 11 | + }, |
| 12 | + exclude: [ |
| 13 | + 'transform-regenerator', |
| 14 | + 'es6.typed.array-buffer', |
| 15 | + 'es6.typed.data-view', |
| 16 | + 'es6.typed.int8-array', |
| 17 | + 'es6.typed.uint8-array', |
| 18 | + 'es6.typed.uint8-clamped-array', |
| 19 | + 'es6.typed.int16-array', |
| 20 | + 'es6.typed.uint16-array', |
| 21 | + 'es6.typed.int32-array', |
| 22 | + 'es6.typed.uint32-array', |
| 23 | + 'es6.typed.float32-array', |
| 24 | + 'es6.typed.float64-array', |
| 25 | + 'es6.reflect.apply', |
| 26 | + 'es6.reflect.construct', |
| 27 | + 'es6.reflect.define-property', |
| 28 | + 'es6.reflect.delete-property', |
| 29 | + 'es6.reflect.get', |
| 30 | + 'es6.reflect.get-own-property-descriptor', |
| 31 | + 'es6.reflect.get-prototype-of', |
| 32 | + 'es6.reflect.has', |
| 33 | + 'es6.reflect.is-extensible', |
| 34 | + 'es6.reflect.own-keys', |
| 35 | + 'es6.reflect.prevent-extensions', |
| 36 | + 'es6.reflect.set', |
| 37 | + 'es6.reflect.set-prototype-of', |
| 38 | + 'es6.math.acosh', |
| 39 | + 'es6.math.acosh', |
| 40 | + 'es6.math.asinh', |
| 41 | + 'es6.math.atanh', |
| 42 | + 'es6.math.cbrt', |
| 43 | + 'es6.math.clz32', |
| 44 | + 'es6.math.cosh', |
| 45 | + 'es6.math.expm1', |
| 46 | + 'es6.math.fround', |
| 47 | + 'es6.math.hypot', |
| 48 | + 'es6.math.imul', |
| 49 | + 'es6.math.log1p', |
| 50 | + 'es6.math.log10', |
| 51 | + 'es6.math.log2', |
| 52 | + 'es6.math.sign', |
| 53 | + 'es6.math.sinh', |
| 54 | + 'es6.math.tanh', |
| 55 | + 'es6.math.tanh', |
| 56 | + 'es6.math.trunc', |
| 57 | + 'web.timers' |
| 58 | + ], |
| 59 | + modules: false, |
| 60 | + debug: false, |
| 61 | + useBuiltIns: 'entry' |
| 62 | + }] |
| 63 | + ], |
| 64 | + plugins: [ |
| 65 | + ['@babel/plugin-proposal-object-rest-spread', {useBuiltIns: true}], |
| 66 | + ['transform-inline-environment-variables'] |
| 67 | + ], |
| 68 | + env: { |
| 69 | + commonjs: { |
| 70 | + plugins: [ |
| 71 | + ['@babel/plugin-transform-modules-commonjs', {loose: true}] |
| 72 | + ] |
| 73 | + }, |
| 74 | + commonjs_dist: { |
| 75 | + plugins: [ |
| 76 | + ['@babel/plugin-transform-modules-commonjs', {loose: true}], |
| 77 | + ['babel-plugin-transform-require-ignore', {extensions: ['.css']}] |
| 78 | + ] |
| 79 | + }, |
| 80 | + commonjs_e2e: { |
| 81 | + presets: [ |
| 82 | + [ |
| 83 | + '@babel/preset-env', { |
| 84 | + targets: { |
| 85 | + chrome: '41', |
| 86 | + firefox: '34', |
| 87 | + ie: '9', |
| 88 | + safari: '9', |
| 89 | + browsers: ['last 3 versions'] |
| 90 | + }, |
| 91 | + exclude: [ |
| 92 | + 'es6.typed.array-buffer', |
| 93 | + 'es6.typed.data-view', |
| 94 | + 'es6.typed.int8-array', |
| 95 | + 'es6.typed.uint8-array', |
| 96 | + 'es6.typed.uint8-clamped-array', |
| 97 | + 'es6.typed.int16-array', |
| 98 | + 'es6.typed.uint16-array', |
| 99 | + 'es6.typed.int32-array', |
| 100 | + 'es6.typed.uint32-array', |
| 101 | + 'es6.typed.float32-array', |
| 102 | + 'es6.typed.float64-array', |
| 103 | + 'es6.reflect.apply', |
| 104 | + 'es6.reflect.construct', |
| 105 | + 'es6.reflect.define-property', |
| 106 | + 'es6.reflect.delete-property', |
| 107 | + 'es6.reflect.get', |
| 108 | + 'es6.reflect.get-own-property-descriptor', |
| 109 | + 'es6.reflect.get-prototype-of', |
| 110 | + 'es6.reflect.has', |
| 111 | + 'es6.reflect.is-extensible', |
| 112 | + 'es6.reflect.own-keys', |
| 113 | + 'es6.reflect.prevent-extensions', |
| 114 | + 'es6.reflect.set', |
| 115 | + 'es6.reflect.set-prototype-of', |
| 116 | + 'es6.math.acosh', |
| 117 | + 'es6.math.acosh', |
| 118 | + 'es6.math.asinh', |
| 119 | + 'es6.math.atanh', |
| 120 | + 'es6.math.cbrt', |
| 121 | + 'es6.math.clz32', |
| 122 | + 'es6.math.cosh', |
| 123 | + 'es6.math.expm1', |
| 124 | + 'es6.math.fround', |
| 125 | + 'es6.math.hypot', |
| 126 | + 'es6.math.imul', |
| 127 | + 'es6.math.log1p', |
| 128 | + 'es6.math.log10', |
| 129 | + 'es6.math.log2', |
| 130 | + 'es6.math.sign', |
| 131 | + 'es6.math.sinh', |
| 132 | + 'es6.math.tanh', |
| 133 | + 'es6.math.tanh', |
| 134 | + 'es6.math.trunc', |
| 135 | + 'web.timers' |
| 136 | + ], |
| 137 | + modules: false, |
| 138 | + debug: false, |
| 139 | + useBuiltIns: 'entry' |
| 140 | + }] |
| 141 | + ], |
| 142 | + plugins: [ |
| 143 | + ['@babel/plugin-transform-modules-commonjs', {loose: true}], |
| 144 | + [ |
| 145 | + 'babel-plugin-forbidden-imports', { |
| 146 | + allowedModules: [ |
| 147 | + '@babel/polyfill/*', |
| 148 | + 'window', |
| 149 | + 'jasmine-co', |
| 150 | + 'core-js/*', |
| 151 | + 'regenerator-runtime/runtime', |
| 152 | + './common', |
| 153 | + './../bootstrap', |
| 154 | + './helpers/custom-matchers', |
| 155 | + './asciiTable', |
| 156 | + './MemoryLeakTest' |
| 157 | + ] |
| 158 | + }] |
| 159 | + ] |
| 160 | + }, |
| 161 | + es: { |
| 162 | + plugins: [ |
| 163 | + ['babel-plugin-transform-require-ignore', {extensions: ['.css']}] |
| 164 | + ] |
| 165 | + } |
| 166 | + }, |
| 167 | + ignore: [ |
| 168 | + 'src/3rdparty/walkontable/dist/*', |
| 169 | + 'src/3rdparty/walkontable/test/dist/*' |
| 170 | + ] |
| 171 | +}; |
0 commit comments