We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e0f835 + 75efae7 commit d45a432Copy full SHA for d45a432
package.json
@@ -12,8 +12,7 @@
12
"url": "https://github.com/morganney/webpack-strip-debug-loader/issues"
13
},
14
"scripts": {
15
- "prepack": "babel src --out-dir dist",
16
- "postpack": "node --experimental-json-modules ./postpack.js",
+ "prepack": "node --experimental-json-modules ./prepack.js",
17
"lint": "eslint . src __tests__ --ext .js,.cjs",
18
"test": "node --experimental-vm-modules ./node_modules/.bin/jest"
19
postpack.js renamed to prepack.js
@@ -1,7 +1,10 @@
1
import fs from 'fs'
2
+import { execSync } from 'child_process'
3
4
import pkg from './package.json'
5
6
+execSync('babel src --out-dir dist')
7
+
8
/**
9
* Remove "type": "module" until webpack supports ES modules better
10
*/
0 commit comments