You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using AMP together with amp-script, it'd be good if the script somehow could be transpiled. For example, if I would like to import preact and build some component I have to either introduce a second build step, or heavily modifiy the current Webpack config, if that's even possible.
I've tried to add custom entries, but they don't end up in the build manifest so I have no way of getting their path.
Describe the solution you'd like
The way I see it, there are two ways to go here. One way would be to magically find all the AMP script tags on the page that aren't remote and transpile them automatically during build. The other way would be to let users add custom entries in the Webpack config that would end up in the build manifest.
This discussion was converted from issue #15682 on April 12, 2021 11:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
Is your feature request related to a problem? Please describe.
When using AMP together with
amp-script
, it'd be good if the script somehow could be transpiled. For example, if I would like to importpreact
and build some component I have to either introduce a second build step, or heavily modifiy the current Webpack config, if that's even possible.I've tried to add custom entries, but they don't end up in the build manifest so I have no way of getting their path.
Describe the solution you'd like
The way I see it, there are two ways to go here. One way would be to magically find all the AMP script tags on the page that aren't remote and transpile them automatically during build. The other way would be to let users add custom entries in the Webpack config that would end up in the build manifest.
Beta Was this translation helpful? Give feedback.
All reactions