olum-compiler 1.6.2 → 1.6.3

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.
Files changed (2) hide show
  1. package/bin/bundle.js +19 -0
  2. package/package.json +1 -1
package/bin/bundle.js CHANGED
@@ -99,6 +99,25 @@ async function bundle(bootAt) {
99
99
  build: {
100
100
  outDir,
101
101
  emptyOutDir: true,
102
+
103
+ assetsInlineLimit: 0,
104
+ rollupOptions: {
105
+ output: {
106
+ assetFileNames(info) {
107
+ const orig = (info.originalFileNames || [])[0];
108
+ const name = (info.names || [])[0] || "";
109
+ if (
110
+ orig &&
111
+ !orig.startsWith("..") &&
112
+ !path.isAbsolute(orig) &&
113
+ path.extname(orig) === path.extname(name)
114
+ ) {
115
+ return orig;
116
+ }
117
+ return "assets/[name]-[hash][extname]";
118
+ },
119
+ },
120
+ },
102
121
  },
103
122
  });
104
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "olum-compiler",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "A module for compiling/bundling olumjs projects",
5
5
  "main": "bin/index.js",
6
6
  "bin": {