@mirta/rollup 0.0.4 → 0.0.6

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/dist/index.mjs +3 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -101,7 +101,7 @@ function wbRulesImports() {
101
101
 
102
102
  const env = process.env.NODE_ENV;
103
103
  const isProduction = env === 'production';
104
- const packagesPattern = /node_modules\/@?(.*)\/dist\/(.*)/;
104
+ const packagesPattern = /node_modules\/@?(.+)\/(.+)/;
105
105
  const modulesPattern = /(?:src\/)?wb-rules-modules\/(.*)/;
106
106
  const scriptsPattern = /(?:src\/)?(?:wb-rules\/)?(.*)/;
107
107
  function packageEntry(pkg, entry) {
@@ -128,7 +128,7 @@ function getEntry(path) {
128
128
  if (match) {
129
129
  // if ((process.env.NODE_ENV !== 'production'))
130
130
  // console.debug(match)
131
- return packageEntry(match[1], match[2]);
131
+ return packageEntry(match[1].replace(/\/dist$/, ''), match[2]);
132
132
  }
133
133
  match = modulesPattern.exec(path);
134
134
  if (match) {
@@ -188,6 +188,7 @@ function defineConfig(options = {}) {
188
188
  ],
189
189
  output: {
190
190
  format: 'cjs',
191
+ strict: false,
191
192
  dir: 'dist/es5',
192
193
  preserveModules: true,
193
194
  entryFileNames(chunkInfo) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirta/rollup",
3
3
  "description": "Predefined Rollup configuration for wb-rules project builds.",
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "license": "Unlicense",
6
6
  "keywords": [
7
7
  "mirta",
@@ -41,7 +41,7 @@
41
41
  "magic-string": "^0.30.17",
42
42
  "rollup-plugin-typescript2": "^0.36.0",
43
43
  "typescript": "^5.8.3",
44
- "@mirta/polyfills": "0.0.4"
44
+ "@mirta/polyfills": "0.0.6"
45
45
  },
46
46
  "devDependencies": {
47
47
  "rollup": "^4.45.1"