Comments (4)
@fregante commented on April 11, 2022 1:03 AM:
Thanks for the research. Yeah that's a Chrome limitation. Can you send a PR? The only change is that I'd just name them development and default, the latter is picked up automatically.
Sent - thanks for waiting patiently :-)
from browser-extension-template.
@aspiers commented on April 10, 2022 8:16 PM:
Source maps don't work unless inlined in web extensions
It doesn't explain why they don't work unless inlined, so I'm guessing it's a fundamental browser thing, e.g. a security restriction on extensions.
Did a bit more digging, and found:
- https://stackoverflow.com/questions/61462586/can-i-enable-sourcemaps-in-a-chrome-extension/62270410#62270410
- https://bugs.chromium.org/p/chromium/issues/detail?id=212374
- https://bugs.chromium.org/p/chromium/issues/detail?id=974543
so it seems this issue has been going on since 2013 in Chromium and derivatives, and is perhaps very recently fixed, or close to being fixed.
from browser-extension-template.
Thanks for the research. Yeah that's a Chrome limitation. Can you send a PR? The only change is that I'd just name them development and default, the latter is picked up automatically.
from browser-extension-template.
This has likely been fixed in the meanwhile:
This is what I see now:
Unless I manually disable the source maps:
from browser-extension-template.
Related Issues (20)
- Content scripts injected via chrome.scripting API HOT 2
- Release workflow requires undocumented write access to repository
- Issue with using import in content scripts HOT 5
- importing Image not working from content script HOT 3
- Need to restart the extension to see changes HOT 9
- Unsafe construction of an any type value. HOT 5
- Linting errors after converting to TypeScript HOT 5
- Document how to convert the project to use TypeScript
- Meta: Firefox deployment failed HOT 2
- Firefox support discussion (MV2, MV3) HOT 15
- erroneous issue, please delete sorry HOT 1
- Chrome Web Store rejection for obfuscated code HOT 4
- Lint css error, fetch tags error, duplicated addon once published HOT 1
- "Template cleanup" workflow broken HOT 1
- Include "popup" in template HOT 1
- Icon greyed out and no functionality HOT 5
- Allow retriggering a store submission HOT 1
- Nested folders in /src HOT 2
- Revisit external sourcemap support, it might be possible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-extension-template.