@financial-times/dotcom-build-js 11.3.0 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/babel.d.ts +1 -1
- package/dist/node/babel.js +2 -2
- package/dist/node/index.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -2832
- package/package.json +2 -5
- package/src/babel.ts +1 -1
package/dist/node/babel.d.ts
CHANGED
package/dist/node/babel.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = getBabelRule;
|
3
4
|
function getBabelConfig(options = {}) {
|
4
5
|
const presetEnvOpts = {
|
5
|
-
targets:
|
6
|
+
targets: 'defaults',
|
6
7
|
// Exclude transforms that make all code slower
|
7
8
|
// See https://github.com/facebook/create-react-app/pull/5278
|
8
9
|
exclude: ['transform-typeof-symbol']
|
@@ -57,4 +58,3 @@ function getBabelRule(userOptions) {
|
|
57
58
|
}
|
58
59
|
};
|
59
60
|
}
|
60
|
-
exports.default = getBabelRule;
|
package/dist/node/index.js
CHANGED
@@ -15,7 +15,7 @@ class PageKitJsPlugin {
|
|
15
15
|
}
|
16
16
|
apply(compiler) {
|
17
17
|
compiler.options.resolve.extensions = ['.js', '.jsx', '.mjs', '.json', '.ts', '.tsx'];
|
18
|
-
compiler.options.module.rules.push(babel_1.default(this.options));
|
18
|
+
compiler.options.module.rules.push((0, babel_1.default)(this.options));
|
19
19
|
}
|
20
20
|
}
|
21
21
|
exports.PageKitJsPlugin = PageKitJsPlugin;
|