Skip to content

Commit 6995957

Browse files
authored
fix: remove require banner for esm builds (#15)
1 parent 393d53c commit 6995957

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

esbuild.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ Promise.all([
5959
platform: "node",
6060
outdir: "dist/esm",
6161
plugins: [browserifyPlugin],
62-
banner: {
63-
js: `
64-
import {createRequire} from 'module'
65-
const require = createRequire(import.meta.url)
66-
`.trim(),
67-
},
6862
}),
6963

7064
// Edge:
@@ -86,12 +80,6 @@ const require = createRequire(import.meta.url)
8680
format: "esm",
8781
platform: "browser",
8882
plugins: [browserifyPlugin],
89-
banner: {
90-
js: `
91-
import {createRequire} from 'module'
92-
const require = createRequire(import.meta.url)
93-
`.trim(),
94-
},
9583
}),
9684

9785
// Bin builds:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codesandbox/sdk",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"description": "The CodeSandbox SDK",
55
"author": "CodeSandbox",
66
"license": "MIT",
@@ -97,6 +97,5 @@
9797
"util": "0.12.5",
9898
"why-is-node-running": "^2.3.0",
9999
"yargs": "^17.7.2"
100-
},
101-
"dependencies": {}
100+
}
102101
}

0 commit comments

Comments
 (0)