@financial-times/dotcom-build-base 11.3.0 → 12.0.0

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.
@@ -38,6 +38,15 @@ class PageKitBasePlugin {
38
38
  };
39
39
  compiler.options.devtool = isDevMode ? 'cheap-module-eval-source-map' : 'source-map';
40
40
  compiler.options.bail = !isDevMode;
41
+ compiler.options.module.rules.push({
42
+ test: /\.m?js$/,
43
+ resolve: {
44
+ // the default of `true` means imports in ESM modules must have a file extension,
45
+ // which is correct per the spec. unfortunately there are quite a few packages
46
+ // that output ESM with extensionless imports.
47
+ fullySpecified: false
48
+ }
49
+ });
41
50
  new clean_webpack_plugin_1.CleanWebpackPlugin(cleanWebpackPluginOptions).apply(compiler);
42
51
  new webpack_assets_manifest_1.default(manifestPluginOptions).apply(compiler);
43
52
  if (!isDevMode) {