portosaurus 1.18.8 → 1.18.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "1.18.8",
3
+ "version": "1.18.9",
4
4
  "author": "soymadip",
5
5
  "license": "GPL-3.0-only",
6
6
  "description": "Complete portfolio cum personal website solution for your digital personality.",
@@ -291,6 +291,7 @@ export function createDocuConf(userConfig, projectRoot = process.cwd()) {
291
291
 
292
292
  plugins: [
293
293
  // path.resolve(internalUtils, "generateFavicon.js"),
294
+ path.resolve(__dirname, "./transpilePlugin.js"),
294
295
  path.resolve(__dirname, "./generateRobotsTxt.js"),
295
296
  [
296
297
  "@easyops-cn/docusaurus-search-local",
@@ -0,0 +1,20 @@
1
+ module.exports = function (context, options) {
2
+ return {
3
+ name: "portosaurus-transpiler",
4
+ configureWebpack(_config, isServer, utils) {
5
+ return {
6
+ module: {
7
+ rules: [
8
+ {
9
+ test: /\.js$/,
10
+ include: /node_modules\/portosaurus/,
11
+ use: {
12
+ loader: utils.getJSLoader(isServer),
13
+ },
14
+ },
15
+ ],
16
+ },
17
+ };
18
+ },
19
+ };
20
+ };