apostrophe 3.39.1 → 3.39.2
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@ const path = require('path');
|
|
|
2
2
|
const merge = require('webpack-merge').merge;
|
|
3
3
|
const scss = require('./webpack.scss');
|
|
4
4
|
const vue = require('./webpack.vue');
|
|
5
|
+
const js = require('./webpack.js');
|
|
5
6
|
|
|
6
7
|
let BundleAnalyzerPlugin;
|
|
7
8
|
|
|
@@ -12,7 +13,7 @@ if (process.env.APOS_BUNDLE_ANALYZER) {
|
|
|
12
13
|
module.exports = ({
|
|
13
14
|
importFile, modulesDir, outputPath, outputFilename
|
|
14
15
|
}, apos) => {
|
|
15
|
-
const tasks = [ scss, vue ].map(task =>
|
|
16
|
+
const tasks = [ scss, vue, js ].map(task =>
|
|
16
17
|
task(
|
|
17
18
|
{
|
|
18
19
|
importFile,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = (options, apos) => {
|
|
2
|
+
return {
|
|
3
|
+
module: {
|
|
4
|
+
rules: [
|
|
5
|
+
{
|
|
6
|
+
test: /\.(m)?js$/i,
|
|
7
|
+
resolve: {
|
|
8
|
+
byDependency: {
|
|
9
|
+
esm: {
|
|
10
|
+
// Be tolerant of imports like lodash/debounce that
|
|
11
|
+
// should really be lodash/debounce.js, as dependencies
|
|
12
|
+
// like tiptap are not fully on board with that rule yet
|
|
13
|
+
fullySpecified: false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
};
|