Skip to content

Commit 306d9b8

Browse files
committed
umm
1 parent 472e61d commit 306d9b8

4 files changed

Lines changed: 8 additions & 1165 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Build Core
2626
uses: Borales/actions-yarn@v2.3.0
2727
with:
28-
cmd: build:core # will run `yarn build:core` command
28+
cmd: build # will run `yarn build` command
2929
- name: Commit changed files
3030
uses: stefanzweifel/git-auto-commit-action@v4
3131
with:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
record: true
3434
browser: chrome
35-
build: yarn run build:core
35+
build: yarn run build
3636
env:
3737
# pass the Dashboard record key as an environment variable
3838
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

build.js

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const esbuildBase = {
1414
minify: true,
1515
platform: 'browser',
1616
charset: 'utf8',
17-
target: ['es2020', 'firefox78', 'chrome78', 'safari11.1'],
17+
target: ['es2020', 'edge79', 'firefox67', 'chrome64', 'safari11.1'],
1818
};
1919

2020
/** @type {import('esbuild').Plugin} */
@@ -38,8 +38,6 @@ const kayrosFixPlugin = {
3838
};
3939

4040
async function main () {
41-
const { default: pluginBabel } = await import('esbuild-plugin-babel');
42-
4341
/** @type {Record<string, Partial<import('esbuild').BuildOptions>>} */
4442
const builds = {
4543
esm: {
@@ -52,7 +50,7 @@ async function main () {
5250
outfile: './lib/monogatari.node.js',
5351
sourcemap: 'linked',
5452
define: {
55-
'import.meta.url': 'location',
53+
'import.meta.url': 'location.origin',
5654
},
5755
},
5856
iife: {
@@ -61,24 +59,8 @@ async function main () {
6159
outfile: './dist/engine/core/monogatari.js',
6260
globalName: 'Monogatari',
6361
define: {
64-
'import.meta.url': 'location',
62+
'import.meta.url': 'location.origin',
6563
},
66-
plugins: [
67-
pluginBabel({
68-
filter: /.js$/,
69-
config: {
70-
presets: [
71-
[
72-
"@babel/preset-env",
73-
{
74-
useBuiltIns: "usage",
75-
corejs: 3
76-
}
77-
]
78-
]
79-
}
80-
})
81-
]
8264
},
8365
debug: {
8466
entryPoints: ['./debug/index.js'],

0 commit comments

Comments
 (0)