mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-03 22:52:18 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
1
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/build/assets/my-asset-620b911b.bin
generated
vendored
Normal file
1
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/build/assets/my-asset-620b911b.bin
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
assetcontent
|
15
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/build/runner.html
generated
vendored
Normal file
15
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/build/runner.html
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!--
|
||||
Copyright 2018 Google Inc. All Rights Reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<script src="entry.js"></script>
|
17
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/entry.js
generated
vendored
Normal file
17
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/entry.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Copyright 2018 Google Inc. All Rights Reserved.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
const w = new Worker("./worker.js");
|
||||
w.addEventListener("message", ev => {
|
||||
window.parent.postMessage(ev.data, "*");
|
||||
});
|
25
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/rollup.config.js
generated
vendored
Normal file
25
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/rollup.config.js
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
const MARKER = "my-special-import";
|
||||
module.exports = (config, outputOptions, omt) => {
|
||||
config.plugins = [
|
||||
omt(),
|
||||
{
|
||||
resolveId(id) {
|
||||
if (id !== MARKER) {
|
||||
return;
|
||||
}
|
||||
return id;
|
||||
},
|
||||
load(id) {
|
||||
if (id !== MARKER) {
|
||||
return;
|
||||
}
|
||||
const referenceId = this.emitFile({
|
||||
type: "asset",
|
||||
name: "my-asset.bin",
|
||||
source: "assetcontent"
|
||||
});
|
||||
return `export default import.meta.ROLLUP_FILE_URL_${referenceId}`;
|
||||
}
|
||||
}
|
||||
];
|
||||
};
|
18
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/worker.js
generated
vendored
Normal file
18
web/node_modules/@surma/rollup-plugin-off-main-thread/tests/fixtures/assets-in-worker/worker.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Copyright 2018 Google Inc. All Rights Reserved.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import url from "my-special-import";
|
||||
|
||||
fetch(url)
|
||||
.then(resp => resp.text())
|
||||
.then(text => postMessage(text));
|
Loading…
Add table
Add a link
Reference in a new issue