Skip to content

Commit d98e471

Browse files
committed
fix build dir in integration tests
1 parent 8d811f1 commit d98e471

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

packages/browser/examples/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../build/bundle.js
1+
../build/bundle/bundle.js

packages/browser/src/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@
212212
injectSdk(onLoadCallbacks);
213213
});
214214
}
215-
})(window, document, 'script', 'onerror', 'onunhandledrejection', 'Sentry', 'loader.js', '../../build/bundle.js', {
215+
})(window, document, 'script', 'onerror', 'onunhandledrejection', 'Sentry', 'loader.js', '../../build/bundle/bundle.js', {
216216
dsn: 'https://[email protected]/1'
217217
});

packages/browser/test/integration/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ function build() {
9696

9797
writeFile(
9898
"artifacts/sdk.js",
99-
readFile("../../build/bundle.js").replace(
99+
readFile("../../build/bundle/bundle.js").replace(
100100
"//# sourceMappingURL=bundle.js.map",
101101
""
102102
)
103103
);
104104
writeFile(
105105
"artifacts/loader.js",
106106
readFile("../../src/loader.js").replace(
107-
"../../build/bundle.js",
107+
"../../build/bundle/bundle.js",
108108
"/base/artifacts/sdk.js"
109109
)
110110
);

packages/integration-tests/utils/generatePlugin.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ const useBundle = bundleKey && !useCompiledModule;
1717

1818
const BUNDLE_PATHS: Record<string, Record<string, string>> = {
1919
browser: {
20-
cjs: 'dist/index.js',
21-
esm: 'esm/index.js',
22-
bundle_es5: 'build/bundle.js',
23-
bundle_es5_min: 'build/bundle.min.js',
24-
bundle_es6: 'build/bundle.es6.js',
25-
bundle_es6_min: 'build/bundle.es6.min.js',
20+
cjs: 'build/dist/index.js',
21+
esm: 'build/esm/index.js',
22+
bundle_es5: 'build/bundle/bundle.js',
23+
bundle_es5_min: 'build/bundle/bundle.min.js',
24+
bundle_es6: 'build/bundle/bundle.es6.js',
25+
bundle_es6_min: 'build/bundle/bundle.es6.min.js',
2626
},
2727
tracing: {
2828
cjs: 'dist/index.js',

0 commit comments

Comments
 (0)