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.
1 parent 62fc67c commit 28c5db0Copy full SHA for 28c5db0
constructor/build.js
package.json
@@ -23,7 +23,8 @@
23
"license": "MIT",
24
"scripts": {
25
"test": "node test/run.js",
26
- "prepublishOnly": "node constructor/build.js"
+ "build": "rollup -c",
27
+ "prepublishOnly": "npm run build"
28
},
29
"peerDependencies": {
30
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
rollup.config.js
@@ -0,0 +1,10 @@
1
+export default {
2
+ input: "index.js",
3
+ external: ["acorn"],
4
+ output: {
5
+ file: "index.cjs",
6
+ exports: 'default',
7
+ format: "cjs",
8
+ banner: "// DO NOT edit this file, it's auto-generated from 'rollup.config.js'; any changes will be overwritten. \n"
9
+ }
10
+};
0 commit comments