Skip to content

Commit 7041e04

Browse files
committed
Remove stickybits
1 parent 6c4ae40 commit 7041e04

File tree

7 files changed

+2
-26
lines changed

7 files changed

+2
-26
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
"@babel/plugin-transform-arrow-functions": "^7.27.1",
6666
"@babel/plugin-transform-block-scoped-functions": "^7.27.1",
6767
"@babel/plugin-transform-block-scoping": "^7.28.0",
68-
"@babel/plugin-transform-classes": "^7.28.0",
6968
"@babel/plugin-transform-class-properties": "^7.27.1",
7069
"@babel/plugin-transform-class-static-block": "^7.27.1",
70+
"@babel/plugin-transform-classes": "^7.28.0",
7171
"@babel/plugin-transform-computed-properties": "^7.27.1",
7272
"@babel/plugin-transform-destructuring": "^7.28.0",
7373
"@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.27.1",

web/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
templates
22
dist
33
src/public/core-js-bundle.js
4-
src/public/stickybits.min.js

web/scripts/copy.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ const { copy } = fs;
22

33
await copy('web/templates/assets', 'web/dist/assets');
44
await copy('web/templates/core-js-bundle.js', 'web/dist/core-js-bundle.js');
5-
await copy('web/templates/stickybits.min.js', 'web/dist/stickybits.min.js');
65

76
echo(chalk.green(`Assets copied`));

web/scripts/runner.mjs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,6 @@ async function copyCommonFiles() {
245245
console.timeEnd(`Copied common files`);
246246
}
247247

248-
async function copyStickyBits() {
249-
console.log(`Copying stickybits...`);
250-
console.time(`Copied stickybits`);
251-
const fromDir = `${buildSrcDir}web/node_modules/stickybits/dist/stickybits.min.js`;
252-
const toDir = `${buildSrcDir}web/src/public/stickybits.min.js`;
253-
await cp(fromDir, toDir, { recursive: true });
254-
console.timeEnd(`Copied stickybits`);
255-
}
256-
257248
async function run() {
258249
console.time('Finished in');
259250
await createBuildDir();
@@ -273,7 +264,6 @@ async function run() {
273264

274265
await prepareBuilder(targetBranch);
275266
await buildAndCopyCoreJS();
276-
await copyStickyBits();
277267
await copyBlogPosts();
278268
await copyCommonFiles();
279269
if (!branch) {

web/src/index.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@
1616
html.className = '';
1717
html.classList.add(theme);
1818
}
19-
!function(d) {
20-
if (!d.currentScript) {
21-
console.log('It is IE, loading stickybits polyfill');
22-
const s = d.createElement('script');
23-
s.src = './stickybits.min.js';
24-
d.head.appendChild(s);
25-
s.onload = function() {
26-
stickybits('.sticky');
27-
};
28-
}
29-
}(document);
3019
</script>
3120
</head>
3221
<body>

web/vite.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ export default defineConfig({
2222
targets: ['> 0.5%, last 2 versions, ie >= 11']
2323
})
2424
],
25-
// plugins: [noAttr()]
2625
});

0 commit comments

Comments
 (0)